From bc567f4d372a17eb756004cdbfd8458ecc04b07e Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Sun, 6 Jul 2014 01:42:24 -0400 Subject: [PATCH] remove debug output --- var.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/var.go b/var.go index de9b2aa..e8f6b8e 100644 --- a/var.go +++ b/var.go @@ -4,6 +4,7 @@ import ( "fmt" "os" "reflect" + _ "regexp" "strconv" "strings" ) @@ -38,10 +39,10 @@ func NewVar(field reflect.StructField) (*Var, error) { // Check if we have a default value to set, otherwise set the type's zero value if newVar.Default != reflect.ValueOf(nil) { - fmt.Println("setting default:", newVar.Default.String()) + // fmt.Println("setting default:", newVar.Default.String()) newVar.SetValue(newVar.Default) } else { - fmt.Println("No default; setting zero value") + // fmt.Println("No default; setting zero value") newVar.SetValue(reflect.Zero(newVar.Type)) } } @@ -96,6 +97,12 @@ func (v *Var) SetOptions(values []reflect.Value) { // SetKey sets Var.Key func (v *Var) SetKey(value string) { + // src := []byte(value) + // regex := regexp.MustCompile("[0-9A-Za-z]+") + // chunks := regex.FindAll(src, -1) + // for i, val := range chunks { + // + // } v.Key = strings.ToUpper(value) }