mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
1 parent
e7b12e36a9
commit
38b34030bc
11 files changed
+13
-36
No files matched your search
@@ -26,7 +26,7 @@ func encodeSettings(m map[string]string) []byte {
|
||||
|
||||
func parseSettings(data []byte) map[string]string {
|
||||
out := map[string]string{}
|
||||
for _, line := range strings.Split(string(data), "\n") {
|
||||
for line := range strings.SplitSeq(string(data), "\n") {
|
||||
if line == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user