update misspell and gofmt
This commit is contained in:
@@ -146,7 +146,7 @@ httpport = 8080
|
||||
# enable db
|
||||
[dbinfo]
|
||||
# db type name
|
||||
# suport mysql,sqlserver
|
||||
# support mysql,sqlserver
|
||||
name = mysql
|
||||
`
|
||||
|
||||
@@ -162,7 +162,7 @@ httpport=8080
|
||||
# enable db
|
||||
[dbinfo]
|
||||
# db type name
|
||||
# suport mysql,sqlserver
|
||||
# support mysql,sqlserver
|
||||
name=mysql
|
||||
`
|
||||
)
|
||||
|
||||
@@ -50,7 +50,7 @@ type SimpleKVs struct {
|
||||
|
||||
var _ KVs = new(SimpleKVs)
|
||||
|
||||
// GetValueOr returns the value for a given key, if non-existant
|
||||
// GetValueOr returns the value for a given key, if non-existent
|
||||
// it returns defValue
|
||||
func (kvs *SimpleKVs) GetValueOr(key interface{}, defValue interface{}) interface{} {
|
||||
v, ok := kvs.kvs[key]
|
||||
|
||||
Reference in New Issue
Block a user