README ¶
tox go-helper
A swiss army knife for golang
Why: After writing the same lines of code over and over again, I came to the conclusion to pack everything into a package ...
Getting started
To get the package, execute:
go get https://github.com/dasrick/go-helper/v2
To import this package, add the following line to your code:
import "github.com/dasrick/go-helper/v2"
For more details, see the API documentation.
Documentation ¶
Index ¶
- func JSONUnmarshalByte(byteValue []byte, target interface{}) error
- func JSONUnmarshalInterface(interfaceValue interface{}, target interface{}) error
- func JSONUnmarshalString(stringValue string, target interface{}) error
- func StringDeduplicate(ss []string) []string
- func ValidateStruct(target interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONUnmarshalByte ¶
JSONUnmarshalByte - target SHOULD be a pointer
func JSONUnmarshalInterface ¶
func JSONUnmarshalInterface(interfaceValue interface{}, target interface{}) error
JSONUnmarshalInterface - target SHOULD be a pointer
func JSONUnmarshalString ¶
JSONUnmarshalString - target SHOULD be a pointer
func StringDeduplicate ¶
StringDeduplicate ... deduplicate a slice of strings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.