Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MultiPartFileForm ¶ added in v0.0.2
func MultiPartFileForm(path_files, field_name string, files_name []string, form map[string]string) (body *bytes.Buffer, content_type string, err error)
path_files ej: ./test_files field_name ej: endoscopia, voucher, foto_mascota, foto_usuario files_name ej: "gatito.jpg, perro.png"
func RandomNumber ¶ added in v0.0.2
func RandomNumber() string
Types ¶
type Request ¶ added in v0.0.2
type Request struct { Endpoint string //ej: create/files delete/x Method string //ej: "PUT","GET" ContentType string //ej: multipart/form-data, application/json *model.Object Data []map[string]string ExpectedCode int *httptest.Server *cutkey.Cut }
Click to show internal directories.
Click to hide internal directories.