Removed firstIndex and replaced with strings.IndexAny
This commit is contained in:
parent
8f74ead862
commit
bd314801c3
2 changed files with 2 additions and 13 deletions
11
conf.go
11
conf.go
|
@ -160,17 +160,6 @@ func NewConfigFile() *ConfigFile {
|
|||
return c
|
||||
}
|
||||
|
||||
func firstIndex(s string, delim []byte) int {
|
||||
for i := 0; i < len(s); i++ {
|
||||
for j := 0; j < len(delim); j++ {
|
||||
if s[i] == delim[j] {
|
||||
return i
|
||||
}
|
||||
}
|
||||
}
|
||||
return -1
|
||||
}
|
||||
|
||||
type GetError struct {
|
||||
Reason int
|
||||
ValueType string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue