Documentation ¶
Overview ¶
Package helpers is a Go package for provides the helpers function for simplify some code
Index ¶
- func CheckInTag(v interface{}, filterField, tag string) []string
- func CheckMatchTag(v interface{}, field, tag string) string
- func DoRequest(opt *HttpOptions, rs interface{}) (int, error)
- func HttpMock(pattern string, statusCode int, response interface{}) *httptest.Server
- func OrderByHandler(field, tag string, model interface{}) string
- func PaginationSetter(perPageString, pageString string) (int, int, int, error)
- type HttpOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInTag ¶
CheckInTag represent the helpers for check attribute inside of struct
func CheckMatchTag ¶
CheckMatchTag represent the helpers for check attribute match of struct
func DoRequest ¶
func DoRequest(opt *HttpOptions, rs interface{}) (int, error)
func OrderByHandler ¶
OrderByHandler represent the helpers for handle order by query
Types ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cloudstorage
module
|
|
diskstorage
module
|
|
imagecompressor
module
|
|
pkg
|
|
diskstorage
Package diskstorage is a generated GoMock package.
|
Package diskstorage is a generated GoMock package. |
imagecompressor
Package imagecompressor is a generated GoMock package.
|
Package imagecompressor is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.