utils

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoOrDie

func DoOrDie(err error)

func IssueRequest added in v0.2.4

func IssueRequest(restyClient *resty.Client, verb string, path string, body interface{}, result interface{}) (string, error)

func JsonStringNoIndent added in v0.5.1

func JsonStringNoIndent(obj interface{}) string

func ParseYaml added in v0.5.1

func ParseYaml[T any](bs []byte) (*T, error)

func ParseYamlFromFile added in v0.5.1

func ParseYamlFromFile[T any](path string) (*T, error)

func ParseYamlFromFileStrict added in v0.5.1

func ParseYamlFromFileStrict[T any](path string) (*T, error)

func ParseYamlStrict added in v0.5.1

func ParseYamlStrict[T any](bs []byte) (*T, error)

func SetUpLogger added in v0.2.4

func SetUpLogger(logLevelStr string) error

func YamlString added in v0.2.1

func YamlString(obj interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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