ConditionCheck: = map [string] interface {} {
"_checkIP": func test {} {}
}
I can"t write this correctly. Please tell me how to define functions in value. Thank you
.ConditionCheck: = map [string] interface {} {
"_checkIP": func test {} {}
}
I can"t write this correctly. Please tell me how to define functions in value. Thank you
.can be a function, but you should pay attention to the type of function
ConditionCheck := map[string]interface{}{
"_checkIP": functionName,
}
func functionName() {
}
Previous: Vue query passes parameters,
[1 2 3][123 132 213 231 312 321] func outOrder(trainsNums []string) []string { COUNT := len(trainsNums) if COUNT == 0 || COUNT > 10 { panic("Illegal argument. trainsNums size must between 1 and 9.") } ...