Analyzing the open source code of the project, I met this entry
args := map[string]interface{}{}
I can not understand what this map is and what kind of values it should be stored in it.
The entire context in which the record is used as the request is passed to the route of the type controller / action as the Params as I understood json:
func (connect *Connect) Request(request string, params string) (interface{}, error) { req, err := connect.factory.NewRequest(Host) if err != nil { return nil, err } args := map[string]interface{}{} json.Unmarshal([]byte(params), &args) resp, err := req.Do(request, args) if err != nil { return nil, err } result, err := resp.GetMethodResult() if err != nil { return nil, err } return result, nil } Please give an example.