From 8b7af226fead222a5c5bffd3db682b9866f3d7df Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Tue, 23 Mar 2021 11:14:30 +0100 Subject: [PATCH] print rune --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index ac821ab..77503a1 100644 --- a/main.go +++ b/main.go @@ -2,6 +2,7 @@ package envconf import ("strings" "unicode" + "fmt" "os") const TypeNone = (1 << 1) @@ -11,11 +12,11 @@ const TypeString = (1 << 4) type Config struct { env map[string]map[string]int - } func getFirstRune(str string)(rune) { for _,v := range str { + fmt.Printf("symbol (%c) (%d)\n", v, v) return v } return rune(0)