print rune

This commit is contained in:
Roy Olav Purser 2021-03-23 11:14:30 +01:00
parent 55326ef470
commit 8b7af226fe
No known key found for this signature in database
GPG Key ID: 0BA77797F072BC52

View File

@ -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)