mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
feat: update to go1.24 & support listening https (#1002)
* feat: support listening https * refactor * modernize * support snake case in config * more precise control of config fields * update goreleaser config * remove kubeyaml * fix: expose agent_secret * chore
This commit is contained in:
@@ -33,9 +33,7 @@ func GjsonIter(json string) (iter.Seq2[string, string], error) {
|
||||
return nil, ErrGjsonWrongType
|
||||
}
|
||||
|
||||
return func(yield func(string, string) bool) {
|
||||
result.ForEach(func(k, v gjson.Result) bool {
|
||||
return yield(k.String(), v.String())
|
||||
})
|
||||
}, nil
|
||||
return ConvertSeq2(result.ForEach, func(k, v gjson.Result) (string, string) {
|
||||
return k.String(), v.String()
|
||||
}), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user