Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
2cdcbec364
|
|||
f815bff582
|
|||
73278439b0
|
|||
0a589a2565
|
|||
179666c8f9
|
|||
02d36e3d69
|
|||
9733bb42a8
|
|||
3d2005a8a2
|
|||
1803501272
|
|||
d1bcc8c4cc
|
|||
afa50b4fca
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
tests/buildenv/*
|
||||||
|
tests/bin/*
|
@ -1,3 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
go fmt *.go
|
go fmt *.go
|
||||||
git add *.go
|
go fmt tests/*.go
|
||||||
|
|
||||||
|
git add *.go tests/*.go
|
||||||
|
git add tests/*.go
|
||||||
|
51
datatype.go
51
datatype.go
@ -1,40 +1,69 @@
|
|||||||
package envconf
|
package envconf
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DataType int
|
type DataType uint32
|
||||||
|
|
||||||
const (
|
const (
|
||||||
TypeNone DataType = iota
|
sizeBitmask DataType = 0xffff
|
||||||
TypeInt DataType = iota
|
typeBitmask DataType = sizeBitmask << 16
|
||||||
TypeMetric DataType = iota
|
|
||||||
TypeDuration DataType = iota
|
|
||||||
TypeString DataType = iota
|
|
||||||
TypeDirectory DataType = iota
|
|
||||||
TypeBool DataType = iota
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
TypeNone DataType = iota << 16
|
||||||
|
TypeInt DataType = iota << 16
|
||||||
|
TypeMetric DataType = iota << 16
|
||||||
|
TypeDuration DataType = iota << 16
|
||||||
|
TypeString DataType = iota << 16
|
||||||
|
TypeDirectory DataType = iota << 16
|
||||||
|
TypeBool DataType = iota << 16
|
||||||
|
TypeHex DataType = iota << 16
|
||||||
|
)
|
||||||
|
|
||||||
|
func FixedHex(size uint16) DataType {
|
||||||
|
return TypeHex | DataType(size)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (dtype DataType) baseType() DataType {
|
||||||
|
return dtype & typeBitmask
|
||||||
|
}
|
||||||
|
|
||||||
|
func (dtype DataType) typeAndSize() (DataType, int) {
|
||||||
|
return (dtype & typeBitmask), int(dtype & sizeBitmask)
|
||||||
|
}
|
||||||
|
|
||||||
type cValue struct {
|
type cValue struct {
|
||||||
dtype DataType
|
dtype DataType
|
||||||
intval int64
|
intval int64
|
||||||
durval time.Duration
|
durval time.Duration
|
||||||
boolval bool
|
boolval bool
|
||||||
|
binval []byte
|
||||||
strval string
|
strval string
|
||||||
err error
|
err error
|
||||||
}
|
}
|
||||||
|
|
||||||
func (dtype DataType) parse(key string, str string) (ret cValue) {
|
func (dtype DataType) parse(key string, str string) (ret cValue) {
|
||||||
info, ok := tInfo[dtype]
|
rdtype, size := dtype.typeAndSize()
|
||||||
|
info, ok := tInfo[rdtype]
|
||||||
if ok {
|
if ok {
|
||||||
return info.parser(key, str)
|
ret = info.parser(key, str, size)
|
||||||
|
if len(ret.binval) == 0 {
|
||||||
|
ret.binval = make([]byte, 0, 0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (dtype DataType) String() string {
|
func (dtype DataType) String() string {
|
||||||
info, ok := tInfo[dtype]
|
rdtype, size := dtype.typeAndSize()
|
||||||
|
info, ok := tInfo[rdtype]
|
||||||
if ok {
|
if ok {
|
||||||
|
if size > 0 {
|
||||||
|
return fmt.Sprintf("%s%d", info.name, size)
|
||||||
|
}
|
||||||
return info.name
|
return info.name
|
||||||
}
|
}
|
||||||
return "invalid"
|
return "invalid"
|
||||||
|
83
envconf.go
83
envconf.go
@ -23,7 +23,7 @@ type cEntry struct {
|
|||||||
type Config struct {
|
type Config struct {
|
||||||
parsed bool
|
parsed bool
|
||||||
env map[string]cEntry
|
env map[string]cEntry
|
||||||
mapEnv map[string]map[string]cEntry
|
mapEnv map[string]map[string]string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewConfig returns an envconf.Config that is used to read configuration from environment variables.
|
// NewConfig returns an envconf.Config that is used to read configuration from environment variables.
|
||||||
@ -33,27 +33,31 @@ func NewConfig() *Config {
|
|||||||
config := new(Config)
|
config := new(Config)
|
||||||
config.parsed = false
|
config.parsed = false
|
||||||
config.env = make(map[string]cEntry)
|
config.env = make(map[string]cEntry)
|
||||||
config.mapEnv = make(map[string]map[string]cEntry)
|
config.mapEnv = make(map[string]map[string]string)
|
||||||
|
|
||||||
for _, v := range os.Environ() {
|
for _, v := range os.Environ() {
|
||||||
splitted := strings.SplitN(v, "=", 2)
|
splitted := strings.SplitN(v, "=", 2)
|
||||||
if len(splitted) == 2 {
|
if len(splitted) == 2 {
|
||||||
key := cleanKey(splitted[0])
|
key := cleanKey(splitted[0])
|
||||||
left, right, mappable := keySplit(key)
|
val := splitted[1]
|
||||||
|
splitted = strings.Split(key, "_")
|
||||||
if unicode.IsLetter(getFirstRune(key)) {
|
if unicode.IsLetter(getFirstRune(key)) {
|
||||||
var entry cEntry
|
var entry cEntry
|
||||||
entry.value = splitted[1]
|
entry.value = val
|
||||||
entry.dtype = TypeNone
|
entry.dtype = TypeNone
|
||||||
entry.unset = false
|
entry.unset = false
|
||||||
entry.empty = false
|
entry.empty = false
|
||||||
config.env[key] = entry
|
config.env[key] = entry
|
||||||
if mappable {
|
if len(splitted) > 1 {
|
||||||
if len(config.mapEnv[left]) == 0 {
|
for count, _ := range splitted {
|
||||||
config.mapEnv[left] = make(map[string]cEntry)
|
left := strings.Join(splitted[:count], "_")
|
||||||
|
right := strings.Join(splitted[count:], "_")
|
||||||
|
if len(config.mapEnv[left]) == 0 {
|
||||||
|
config.mapEnv[left] = make(map[string]string)
|
||||||
|
}
|
||||||
|
fmt.Printf("left=(%s), right=(%s), key=(%s)\n", left, right, key)
|
||||||
|
config.mapEnv[left][right] = key
|
||||||
}
|
}
|
||||||
|
|
||||||
config.mapEnv[left][right] = entry
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -84,9 +88,10 @@ func (c *Config) DefineMap(key string, dtype DataType) {
|
|||||||
key = cleanKey(key)
|
key = cleanKey(key)
|
||||||
entries, ok := c.mapEnv[key]
|
entries, ok := c.mapEnv[key]
|
||||||
if ok {
|
if ok {
|
||||||
for mapKey, entry := range entries {
|
for _, key = range entries {
|
||||||
|
entry := c.env[key]
|
||||||
entry.dtype = dtype
|
entry.dtype = dtype
|
||||||
c.mapEnv[key][mapKey] = entry
|
c.env[key] = entry
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -136,13 +141,6 @@ func (c *Config) Parse() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for k, v := range c.mapEnv {
|
|
||||||
for mk, mv := range v {
|
|
||||||
mv.parsed = mv.dtype.parse(k+"_"+mk, mv.value)
|
|
||||||
c.mapEnv[k][mk] = mv
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if failed {
|
if failed {
|
||||||
for k, v := range c.env {
|
for k, v := range c.env {
|
||||||
if (v.parsed.err == nil) && v.unset {
|
if (v.parsed.err == nil) && v.unset {
|
||||||
@ -234,17 +232,7 @@ func (c *Config) Status() (ok bool) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for _, v := range c.mapEnv {
|
|
||||||
for _, mv := range v {
|
|
||||||
err := mv.parsed.err
|
|
||||||
if err != nil {
|
|
||||||
ok = false
|
|
||||||
if !mv.empty {
|
|
||||||
fmt.Fprintln(os.Stderr, err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if !ok {
|
if !ok {
|
||||||
fmt.Fprintln(os.Stderr, "")
|
fmt.Fprintln(os.Stderr, "")
|
||||||
for _, v := range c.env {
|
for _, v := range c.env {
|
||||||
@ -283,10 +271,11 @@ func keySplit(key string) (left string, right string, ok bool) {
|
|||||||
|
|
||||||
func (c *Config) getRaw(key string, dtype DataType) (val cValue) {
|
func (c *Config) getRaw(key string, dtype DataType) (val cValue) {
|
||||||
val.dtype = TypeNone
|
val.dtype = TypeNone
|
||||||
|
val.binval = make([]byte, 0, 0)
|
||||||
if c.parsed {
|
if c.parsed {
|
||||||
key = cleanKey(key)
|
key = cleanKey(key)
|
||||||
entry, ok := c.env[key]
|
entry, ok := c.env[key]
|
||||||
if ok && (entry.dtype == dtype) {
|
if ok && (entry.dtype.baseType() == dtype.baseType()) {
|
||||||
return entry.parsed
|
return entry.parsed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -302,8 +291,9 @@ func (c *Config) getRawMap(key string, dtype DataType) (empty map[string]cValue)
|
|||||||
|
|
||||||
if ok {
|
if ok {
|
||||||
for k, v := range entries {
|
for k, v := range entries {
|
||||||
if v.dtype == dtype {
|
entry := c.env[v]
|
||||||
retval[k] = v.parsed
|
if (entry.dtype.baseType() == dtype.baseType()) && (entry.parsed.err == nil) {
|
||||||
|
retval[k] = entry.parsed
|
||||||
} else {
|
} else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -314,21 +304,28 @@ func (c *Config) getRawMap(key string, dtype DataType) (empty map[string]cValue)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetInt returns the value of an environment variable.
|
// Returns the value of an environment variable.
|
||||||
// If the variable is not defined as envconf.TypeInt the function will return 0.
|
// If the variable is not defined as envconf.TypeInt the function will return 0.
|
||||||
func (c *Config) GetInt(key string) int64 {
|
func (c *Config) GetInt(key string) int64 {
|
||||||
val := c.getRaw(key, TypeInt)
|
val := c.getRaw(key, TypeInt)
|
||||||
return val.intval
|
return val.intval
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetMetric returns the value of an environment variable.
|
// Returns the value of an environment variable.
|
||||||
|
// If the variable is not defined as envconf.TypeHex the function will return []byte{}.
|
||||||
|
func (c *Config) GetHex(key string) []byte {
|
||||||
|
val := c.getRaw(key, TypeHex)
|
||||||
|
return val.binval
|
||||||
|
}
|
||||||
|
|
||||||
|
// Returns the value of an environment variable.
|
||||||
// If the variable is not defined as envconf.TypeMetric the function will return 0.
|
// If the variable is not defined as envconf.TypeMetric the function will return 0.
|
||||||
func (c *Config) GetMetric(key string) int64 {
|
func (c *Config) GetMetric(key string) int64 {
|
||||||
val := c.getRaw(key, TypeMetric)
|
val := c.getRaw(key, TypeMetric)
|
||||||
return val.intval
|
return val.intval
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetDirectory returns the value of an environment variable.
|
// Returns the value of an environment variable.
|
||||||
// If the variable is not defined as envconf.TypeDirectory the
|
// If the variable is not defined as envconf.TypeDirectory the
|
||||||
// function will return the empty string.
|
// function will return the empty string.
|
||||||
func (c *Config) GetDirectory(key string) string {
|
func (c *Config) GetDirectory(key string) string {
|
||||||
@ -336,7 +333,7 @@ func (c *Config) GetDirectory(key string) string {
|
|||||||
return val.strval
|
return val.strval
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetString returns the value of an environment variable.
|
// Returns the value of an environment variable.
|
||||||
// If the variable is not defined as envconf.TypeString the
|
// If the variable is not defined as envconf.TypeString the
|
||||||
// function will return the empty string.
|
// function will return the empty string.
|
||||||
func (c *Config) GetString(key string) string {
|
func (c *Config) GetString(key string) string {
|
||||||
@ -344,7 +341,7 @@ func (c *Config) GetString(key string) string {
|
|||||||
return val.strval
|
return val.strval
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetDuration returns the value of an environment variable.
|
// Returns the value of an environment variable.
|
||||||
// If the variable is not defined as envconf.TypeDuration the
|
// If the variable is not defined as envconf.TypeDuration the
|
||||||
// function will return time.Duration(0).
|
// function will return time.Duration(0).
|
||||||
func (c *Config) GetDuration(key string) time.Duration {
|
func (c *Config) GetDuration(key string) time.Duration {
|
||||||
@ -352,7 +349,7 @@ func (c *Config) GetDuration(key string) time.Duration {
|
|||||||
return val.durval
|
return val.durval
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetBool returns the value of an environment variable.
|
// Returns the value of an environment variable.
|
||||||
// If the variable is not defined as envconf.TypeBool the
|
// If the variable is not defined as envconf.TypeBool the
|
||||||
// function will return false.
|
// function will return false.
|
||||||
func (c *Config) GetBool(key string) bool {
|
func (c *Config) GetBool(key string) bool {
|
||||||
@ -392,6 +389,14 @@ func (c *Config) GetMapBool(key string) (retval map[string]bool) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Config) GetMapHex(key string) (retval map[string][]byte) {
|
||||||
|
retval = make(map[string][]byte)
|
||||||
|
for k, v := range c.getRawMap(key, TypeHex) {
|
||||||
|
retval[k] = v.binval
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func getFirstRune(str string) rune {
|
func getFirstRune(str string) rune {
|
||||||
for _, v := range str {
|
for _, v := range str {
|
||||||
return v
|
return v
|
||||||
|
27
parsers.go
27
parsers.go
@ -1,6 +1,7 @@
|
|||||||
package envconf
|
package envconf
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/hex"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
@ -10,7 +11,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func parseInt(key string, str string) (ret cValue) {
|
func parseInt(key string, str string, _ int) (ret cValue) {
|
||||||
val, err := strconv.ParseInt(str, 10, 64)
|
val, err := strconv.ParseInt(str, 10, 64)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
ret.intval = val
|
ret.intval = val
|
||||||
@ -20,7 +21,7 @@ func parseInt(key string, str string) (ret cValue) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseMetric(key string, str string) (ret cValue) {
|
func parseMetric(key string, str string, _ int) (ret cValue) {
|
||||||
mod := int64(1)
|
mod := int64(1)
|
||||||
str = strings.ToUpper(str)
|
str = strings.ToUpper(str)
|
||||||
if strings.HasSuffix(str, "K") {
|
if strings.HasSuffix(str, "K") {
|
||||||
@ -45,7 +46,7 @@ func parseMetric(key string, str string) (ret cValue) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseDuration(key string, str string) (ret cValue) {
|
func parseDuration(key string, str string, _ int) (ret cValue) {
|
||||||
val, err := time.ParseDuration(str)
|
val, err := time.ParseDuration(str)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
ret.durval = val
|
ret.durval = val
|
||||||
@ -55,7 +56,7 @@ func parseDuration(key string, str string) (ret cValue) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseBool(key string, str string) (ret cValue) {
|
func parseBool(key string, str string, _ int) (ret cValue) {
|
||||||
val, err := strconv.ParseBool(str)
|
val, err := strconv.ParseBool(str)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
ret.boolval = val
|
ret.boolval = val
|
||||||
@ -65,7 +66,21 @@ func parseBool(key string, str string) (ret cValue) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseDirectory(_ string, str string) (ret cValue) {
|
func parseHex(key string, str string, size int) (ret cValue) {
|
||||||
|
val, err := hex.DecodeString(str)
|
||||||
|
if err == nil && (size == 0 || size == len(val)) {
|
||||||
|
ret.binval = val
|
||||||
|
} else {
|
||||||
|
if size == 0 {
|
||||||
|
ret.err = errors.New(fmt.Sprintf(`Environment variable "%s" is not of type hex.`, key))
|
||||||
|
} else {
|
||||||
|
ret.err = errors.New(fmt.Sprintf(`Environment variable "%s" is not of type hex%d.`, key, size))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func parseDirectory(_ string, str string, _ int) (ret cValue) {
|
||||||
wd, err := os.Getwd()
|
wd, err := os.Getwd()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if path.IsAbs(str) {
|
if path.IsAbs(str) {
|
||||||
@ -79,7 +94,7 @@ func parseDirectory(_ string, str string) (ret cValue) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseString(_ string, str string) (ret cValue) {
|
func parseString(_ string, str string, _ int) (ret cValue) {
|
||||||
ret.strval = str
|
ret.strval = str
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
22
tests/build.sh
Executable file
22
tests/build.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
dir=$(dirname $(realpath $0))
|
||||||
|
export GO111MODULE=on
|
||||||
|
export GOPROXY=direct
|
||||||
|
export GOPATH=${dir}/buildenv/deps
|
||||||
|
|
||||||
|
mkdir -p ${dir}/buildenv
|
||||||
|
chmod -R 755 ${dir}/buildenv
|
||||||
|
rm -rf ${dir}/buildenv
|
||||||
|
|
||||||
|
mkdir -p "${dir}/buildenv/src"
|
||||||
|
mkdir -p ${GOPATH}/src
|
||||||
|
mkdir -p ${dir}/bin
|
||||||
|
|
||||||
|
cp -r "${dir}/main.go" "${dir}/buildenv/src/main.go"
|
||||||
|
|
||||||
|
cd ${dir}/buildenv
|
||||||
|
|
||||||
|
go mod init src
|
||||||
|
go mod tidy
|
||||||
|
|
||||||
|
go build -o "${dir}/bin/test" "src/main.go"
|
19
tests/main.go
Normal file
19
tests/main.go
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"git.purser.it/roypur/envconf"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
conf := envconf.NewConfig()
|
||||||
|
conf.Define("this_is_a_map", envconf.TypeInt)
|
||||||
|
conf.Define("test_map", envconf.TypeInt)
|
||||||
|
conf.Parse()
|
||||||
|
conf.Status()
|
||||||
|
|
||||||
|
fmt.Println(conf)
|
||||||
|
|
||||||
|
fmt.Println(conf.GetMapInt("test_map"))
|
||||||
|
fmt.Println(conf.GetHex("this_is_a_map"))
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
package envconf
|
package envconf
|
||||||
|
|
||||||
type dataTypeInfo struct {
|
type dataTypeInfo struct {
|
||||||
parser func(string, string) cValue
|
parser func(string, string, int) cValue
|
||||||
name string
|
name string
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -14,6 +14,8 @@ func init() {
|
|||||||
var durInfo dataTypeInfo
|
var durInfo dataTypeInfo
|
||||||
var strInfo dataTypeInfo
|
var strInfo dataTypeInfo
|
||||||
var dirInfo dataTypeInfo
|
var dirInfo dataTypeInfo
|
||||||
|
var hexInfo dataTypeInfo
|
||||||
|
|
||||||
var boolInfo dataTypeInfo
|
var boolInfo dataTypeInfo
|
||||||
|
|
||||||
intInfo.name = "int"
|
intInfo.name = "int"
|
||||||
@ -21,6 +23,7 @@ func init() {
|
|||||||
durInfo.name = "duration"
|
durInfo.name = "duration"
|
||||||
dirInfo.name = "directory"
|
dirInfo.name = "directory"
|
||||||
strInfo.name = "string"
|
strInfo.name = "string"
|
||||||
|
hexInfo.name = "hex"
|
||||||
boolInfo.name = "bool"
|
boolInfo.name = "bool"
|
||||||
|
|
||||||
intInfo.parser = parseInt
|
intInfo.parser = parseInt
|
||||||
@ -28,6 +31,8 @@ func init() {
|
|||||||
durInfo.parser = parseDuration
|
durInfo.parser = parseDuration
|
||||||
dirInfo.parser = parseDirectory
|
dirInfo.parser = parseDirectory
|
||||||
strInfo.parser = parseString
|
strInfo.parser = parseString
|
||||||
|
|
||||||
|
hexInfo.parser = parseHex
|
||||||
boolInfo.parser = parseBool
|
boolInfo.parser = parseBool
|
||||||
|
|
||||||
tInfo[TypeInt] = intInfo
|
tInfo[TypeInt] = intInfo
|
||||||
@ -35,5 +40,6 @@ func init() {
|
|||||||
tInfo[TypeDuration] = durInfo
|
tInfo[TypeDuration] = durInfo
|
||||||
tInfo[TypeString] = strInfo
|
tInfo[TypeString] = strInfo
|
||||||
tInfo[TypeDirectory] = dirInfo
|
tInfo[TypeDirectory] = dirInfo
|
||||||
|
tInfo[TypeHex] = hexInfo
|
||||||
tInfo[TypeBool] = boolInfo
|
tInfo[TypeBool] = boolInfo
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user