diff options
| author | Shulhan <ms@kilabit.info> | 2024-12-28 18:39:12 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-12-29 00:06:17 +0700 |
| commit | 5a00dfe102a3a06ddee1b79800060dd70231055b (patch) | |
| tree | bea8f05615a1463c18847d2291fa94c0bd81bb0e | |
| parent | c1aab5c376dfa1845b839f1c4b9876a1412a8d24 (diff) | |
| download | pakakeh.go-5a00dfe102a3a06ddee1b79800060dd70231055b.tar.xz | |
lib/numbers: remove unused README and LICENSE
This package README has been merged into the package and the LICENSE
is same with the module.
| -rw-r--r-- | lib/numbers/LICENSE | 38 | ||||
| -rw-r--r-- | lib/numbers/README.html | 55 | ||||
| -rw-r--r-- | lib/numbers/README.md | 16 | ||||
| -rw-r--r-- | lib/numbers/numbers.go (renamed from lib/numbers/numerus.go) | 14 |
4 files changed, 6 insertions, 117 deletions
diff --git a/lib/numbers/LICENSE b/lib/numbers/LICENSE deleted file mode 100644 index 771f6ea6..00000000 --- a/lib/numbers/LICENSE +++ /dev/null @@ -1,38 +0,0 @@ -Copyright 2018, Shulhan (ms@kilabit.info). All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of Kilabit nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY M.SHULHAN "AS IS" AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - --- --- --- --- --- --- --- - - TT TT II BB AAAA LLLLLL II KKKKKKKK - TT TT II BB AA AA LL LL II KK - TTTT II BB AA AA LL LL II KK - TT TT II BB AAAAAAAA LLLLLL II KK - TT TT II BB AA AA LL LL II KK - TT TT II BBBBBBBB AA AA LLLLLL II KK - -Website: http://kilabit.info -Contact: ms@kilabit.info diff --git a/lib/numbers/README.html b/lib/numbers/README.html deleted file mode 100644 index 22ec9243..00000000 --- a/lib/numbers/README.html +++ /dev/null @@ -1,55 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1" /> - <meta name="theme-color" content="#375EAB" /> - - <title></title> - </head> - <body> - <div class="topbar"> - <div class="container"> - <div class="top-heading"> - <a href="/">github.com/shuLhan/share</a> - </div> - <div class="menu"> - <a href="https://godoc.org/github.com/shuLhan/share">GoDoc</a> - </div> - <div class="menu"> - <a href="/CHANGELOG.html">Changelog</a> - </div> - </div> - </div> - - <div class="page"> - <div class="container"> - <h1></h1> - <p><a href="https://godoc.org/github.com/shuLhan/share/lib/numbers"><img src="https://godoc.org/github.com/shuLhan/share/lib/numbers?status.svg" alt="GoDoc"></a> -<a href="https://goreportcard.com/report/github.com/shuLhan/share/lib/numbers"><img src="https://goreportcard.com/badge/github.com/shuLhan/share/lib/numbers" alt="Go Report Card"></a></p> -<p>Package <code>numbers</code> provide functions for working with integer, float, slice of -integers, and slice of floats.</p> -<p>Currently it have function to,</p> -<ul> -<li>sort slice of floats using in-place mergesort algorithm</li> -<li>sort slice of integer/floats by predefined index</li> -<li>count number of value occurence in slice of integer/float</li> -<li>find minimum or maximum value in slice of integer/float</li> -<li>sum slice of integer/float</li> -</ul> -<p>See <a href="https://godoc.org/github.com/shuLhan/share/lib/numbers">documentation</a> -for more information.</p> - - </div> - - </div> - - - <div class="footer"> - Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. - <br /> - Use of this source code is governed by a BSD-style license that can be - found in the <a href="/LICENSE">LICENSE</a> file. - </div> - </body> -</html> diff --git a/lib/numbers/README.md b/lib/numbers/README.md deleted file mode 100644 index 83625a3e..00000000 --- a/lib/numbers/README.md +++ /dev/null @@ -1,16 +0,0 @@ -[](https://godoc.org/git.sr.ht/~shulhan/pakakeh.go/lib/numbers) -[](https://goreportcard.com/report/git.sr.ht/~shulhan/pakakeh.go/lib/numbers) - -Package `numbers` provide functions for working with integer, float, slice of -integers, and slice of floats. - -Currently it have function to, - -- sort slice of floats using in-place mergesort algorithm -- sort slice of integer/floats by predefined index -- count number of value occurence in slice of integer/float -- find minimum or maximum value in slice of integer/float -- sum slice of integer/float - -See [documentation](https://godoc.org/git.sr.ht/~shulhan/pakakeh.go/lib/numbers) -for more information. diff --git a/lib/numbers/numerus.go b/lib/numbers/numbers.go index e0d8e353..196142ef 100644 --- a/lib/numbers/numerus.go +++ b/lib/numbers/numbers.go @@ -1,6 +1,6 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause // Package numbers provide miscellaneous functions for working with integer, // float, slice of integer, and slice of floats. @@ -16,8 +16,6 @@ // - sum slice of integer/float package numbers -const ( - // SortThreshold when the data less than SortThreshold, insertion sort - // will be used to replace mergesort. - SortThreshold = 7 -) +// SortThreshold when the data less than SortThreshold, insertion sort +// will be used to replace mergesort. +const SortThreshold = 7 |
