Skip to content

Commit

Permalink
go-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hui.wang committed Jan 11, 2022
1 parent 29cf89c commit 5f3867a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 33 deletions.
62 changes: 31 additions & 31 deletions kv/gen_options_optiongen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion kv/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"sync"
)

// todo Loder实现Reader接口完全对接到io.Reader,将远程的首次加载流程直接对接到xconf的WithReader
// Loader kv加载基础接口
// todo Loder实现Reader接口完全对接到io.Reader,将远程的首次加载流程直接对接到xconf的WithReader
type Loader interface {
// Name Loader名称
Name() string
Expand Down
2 changes: 2 additions & 0 deletions tests/redis/sub.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ package redis

import "time"

// Conf test conf
type Conf struct {
RedisAddress string `xconf:"redis_address"`
}

// Timeout test conf
type Timeout struct {
ReadTimeout time.Duration
}
2 changes: 1 addition & 1 deletion xutil/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func StringMap(vs []string, f func(string) (string, bool)) []string {
return vsm
}

// ToCleanStringSlice分割字符串,trim字符
// ToCleanStringSlice 分割字符串,trim字符
func ToCleanStringSlice(in string) []string {
return StringMap(strings.Split(StringTrim(in), ","), func(s string) (string, bool) { return StringTrim(s), true })
}
Expand Down

0 comments on commit 5f3867a

Please sign in to comment.