Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed Apr 30, 2022
1 parent 48c1663 commit 5da12d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
7 changes: 0 additions & 7 deletions checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ import (
"github.com/spf13/cast"
)

// 检查ID参数
func checkIDArgument(id string) bool {
_, err := generateCode(id)

return err == nil
}

// 生成数据
func generateCode(id string) (map[string]string, error) {
length := len(id)
Expand Down
9 changes: 0 additions & 9 deletions helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,3 @@ func substr(source string, start int, end int) string {

return string(r[start:end])
}

// MapMerge 合并 Map
func MapMerge(target, source map[int][]map[string]string) map[int][]map[string]string {
for key, value := range source {
target[key] = value
}

return target
}

0 comments on commit 5da12d7

Please sign in to comment.