print rune
This commit is contained in:
parent
55326ef470
commit
8b7af226fe
3
main.go
3
main.go
@ -2,6 +2,7 @@ package envconf
|
|||||||
|
|
||||||
import ("strings"
|
import ("strings"
|
||||||
"unicode"
|
"unicode"
|
||||||
|
"fmt"
|
||||||
"os")
|
"os")
|
||||||
|
|
||||||
const TypeNone = (1 << 1)
|
const TypeNone = (1 << 1)
|
||||||
@ -11,11 +12,11 @@ const TypeString = (1 << 4)
|
|||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
env map[string]map[string]int
|
env map[string]map[string]int
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func getFirstRune(str string)(rune) {
|
func getFirstRune(str string)(rune) {
|
||||||
for _,v := range str {
|
for _,v := range str {
|
||||||
|
fmt.Printf("symbol (%c) (%d)\n", v, v)
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
return rune(0)
|
return rune(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user