表单选择类型动态加载 ajax 文档错误

You need to add a comma after every element in the array

selection.Data{
   Results: selection.Options{
      { ... },
      { ... },
   },
}

and you can’t declare 1000 as a function parameter, you need to declare a variable name.

func (ctx *context.Context) (success bool, msg string, data interface{}, value int) { ... }