Permalink
Browse files

Revert "we only use strings for vals"

This reverts commit 965a926.
  • Loading branch information...
1 parent 965a926 commit 337d1532f84f80e40e9763742095ff4bb67b048f Ryan Smith (ace hacker) committed Mar 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lscan.go
View
@@ -7,10 +7,10 @@ import (
var s scanner.Scanner
-func Parse(r io.Reader) map[string]string {
+func Parse(r io.Reader) map[string]interface{} {
s.Init(r)
s.Whitespace = 0 // don't skip whitespace
- kvmap := make(map[string]string)
+ kvmap := make(map[string]interface{})
key := ""
val := ""
@@ -37,7 +37,7 @@ func Parse(r io.Reader) map[string]string {
return kvmap
}
-func writeTup(m map[string]string, k string, v string) {
+func writeTup(m map[string]interface{}, k string, v string) {
if len(k) > 0 && len(v) > 0 {
m[k] = v
}

0 comments on commit 337d153

Please sign in to comment.