9 func ParseKConfig(raw
[]byte) map[string]string {
10 buffer
:= bytes
.NewBuffer(raw
)
12 scanner
:= bufio
.NewScanner(buffer
)
13 ret
:= map[string]string{}
15 line
:= scanner
.Text()
19 idx
:= strings
.Index(line
, "=")
23 ret
[line
[0:idx
]] = line
[idx
+1:]
28 func UnQuote(in
string) string {
29 return in
[1 : len(in
)-1]