update
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
func If(condition bool, trueValue, falseValue interface{}) interface{} {
|
||||
func If(condition bool, trueValue, falseValue any) any {
|
||||
if condition {
|
||||
return trueValue
|
||||
}
|
||||
@@ -21,8 +21,8 @@ func FirstToUpper(str string) string {
|
||||
return strings.ToUpper(str[:1]) + strings.ToLower(str[1:])
|
||||
}
|
||||
|
||||
func ParseParams(in map[string]string) map[string]interface{} {
|
||||
out := make(map[string]interface{})
|
||||
func ParseParams(in map[string]string) map[string]any {
|
||||
out := make(map[string]any)
|
||||
for k, v := range in {
|
||||
fv, err := strconv.ParseFloat(v, 64)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user