Documentation ¶
Index ¶
- Constants
- func DecodeToStruct[T any](s []byte) (T, error)
- func EncodeToBytes(p interface{}) ([]byte, error)
- func Fetch(url, method string, payload *bytes.Buffer) ([]byte, error)
- func FormatDuration(d time.Duration) string
- func JSONFetch(url, method string, payload *bytes.Buffer) (any, error)
- func Pretty(data interface{}) string
- func PrintPretty(data interface{})
Constants ¶
View Source
const HTTPClientTimeout = time.Duration(1) * time.Second
Variables ¶
This section is empty.
Functions ¶
func DecodeToStruct ¶
func EncodeToBytes ¶
func FormatDuration ¶
func PrintPretty ¶
func PrintPretty(data interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.