Working on v2

This commit is contained in:
2022-01-19 12:56:31 -06:00
parent 1895739c71
commit a2924b8a61
32 changed files with 2121 additions and 20 deletions

28
old/bundle.go Normal file
View File

@@ -0,0 +1,28 @@
package main
type Bundle map[string]interface{}
func (b Bundle) setValue(key string, val interface{}) {
b[key] = val
}
func (b Bundle) getBool(key string, def bool) bool {
if v, ok := b[key].(bool); ok {
return v
}
return def
}
func (b Bundle) getString(key, def string) string {
if v, ok := b[key].(string); ok {
return v
}
return def
}
func (b Bundle) getInt(key string, def int) int {
if v, ok := b[key].(int); ok {
return v
}
return def
}