commons

package
v0.0.0-...-a4f7991 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRequest

func CreateRequest(intfc interface{}, requestType, path string) (*http.Request, error)

CreateRequest to be executed on test based on the body set on an interface and on the path to be requested.

func GetJSONTestFiles

func GetJSONTestFiles(intfc interface{}, path string) error

GetJSONTestFiles to convert any json over an interface based on the json path informed.

Types

type ErrorMsgs

type ErrorMsgs struct {
	Field  string `json:"field"`
	Motive string `json:"motive"`
}

ErrorMsgs implements the field and motive of error will be used on every return of error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL