Documentation ¶
Index ¶
- func BoolStringToInt(s string) int
- func BoolToInt(b bool) int
- func IntToBool(i int) bool
- func Map[T any](item T) (m map[string]interface{}, err error)
- func Marshal[T any](item T) (content []byte, err error)
- func Printify[T any](item T) (s string)
- func Stringify(r *http.Response) (s string, b []byte)
- func Unmap[T any](m map[string]interface{}) (item T, err error)
- func Unmarshal[T any](content []byte, i T) (item T, err error)
- func Unmarshals[T any](content []byte, i []T) (items []T, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolStringToInt ¶
func Stringify ¶
Stringify returns the body content of a http.Response as both a string and []byte. Very helpful for debugging, testing and converting back and forth from the api.
func Unmarshals ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.