parent
e4858bb504
commit
d7a75aaac3
@ -1,6 +1,6 @@
|
||||
package gojobs
|
||||
|
||||
const (
|
||||
Version = "1.0.95"
|
||||
Version = "1.0.96"
|
||||
SpecifyIpNull = "0.0.0.0"
|
||||
)
|
||||
|
@ -1,17 +0,0 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: clone
|
||||
|
||||
steps:
|
||||
- name: Test
|
||||
image: golang:1.18
|
||||
commands:
|
||||
- go env -w GO111MODULE=on
|
||||
- go env -w GOPROXY=https://goproxy.cn,direct
|
||||
- go test -v ./...
|
||||
- name: Benchmark
|
||||
image: golang:1.18
|
||||
commands:
|
||||
- go env -w GO111MODULE=on
|
||||
- go env -w GOPROXY=https://goproxy.cn,direct
|
||||
- go test -bench=. -benchmem
|
@ -1,8 +0,0 @@
|
||||
.env
|
||||
.git
|
||||
.svn
|
||||
.idea
|
||||
.vscode
|
||||
*.log
|
||||
gomod.sh
|
||||
/vendor/
|
@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 李光春
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -1,17 +0,0 @@
|
||||
<h1>
|
||||
<a href="https://www.dtapp.net/">Golang Array</a>
|
||||
</h1>
|
||||
|
||||
📦 Golang Array
|
||||
|
||||
[comment]: <> (go)
|
||||
[![godoc](https://pkg.go.dev/badge/go.dtapp.net/goarray?status.svg)](https://pkg.go.dev/go.dtapp.net/goarray)
|
||||
[![goproxy.cn](https://goproxy.cn/stats/go.dtapp.net/goarray/badges/download-count.svg)](https://goproxy.cn/stats/go.dtapp.net/goarray)
|
||||
[![goreportcard.com](https://goreportcard.com/badge/go.dtapp.net/goarray)](https://goreportcard.com/report/go.dtapp.net/goarray)
|
||||
[![deps.dev](https://img.shields.io/badge/deps-go-red.svg)](https://deps.dev/go/go.dtapp.net%2Fgoarray)
|
||||
|
||||
#### 安装
|
||||
|
||||
```go
|
||||
go get -v -u go.dtapp.net/goarray
|
||||
```
|
@ -1,31 +0,0 @@
|
||||
package goarray
|
||||
|
||||
func Grouping() {
|
||||
|
||||
}
|
||||
|
||||
// TurnString []string 转 string
|
||||
func TurnString(ss []string) (s string) {
|
||||
sl := len(ss)
|
||||
for k, v := range ss {
|
||||
if k+1 == sl {
|
||||
s = s + v
|
||||
} else {
|
||||
s = s + v + ","
|
||||
}
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
||||
// RemoveDuplicateElement 去重
|
||||
func RemoveDuplicateElement[T string | int | int16 | int32](ss []T) []T {
|
||||
result := make([]T, 0, len(ss))
|
||||
temp := map[T]struct{}{}
|
||||
for _, item := range ss {
|
||||
if _, ok := temp[item]; !ok {
|
||||
temp[item] = struct{}{}
|
||||
result = append(result, item)
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
package goarray
|
||||
|
||||
const Version = "1.0.1"
|
Loading…
Reference in new issue