helpers

package
v0.0.0-...-88a98bb Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Env

func Env(name, defaultValue string) (val string)

func LoadJson

func LoadJson(filePath string, v interface{})

LoadJson load a json file or die trying

func RawJson

func RawJson(stuff interface{}) json.RawMessage

RawJson marshal a struct to json and returns it

func ToJson

func ToJson(stuff interface{}) string

ToJson transform stuff to json string

func WriteData

func WriteData(filePath string, data []byte)

func WriteJson

func WriteJson(filePath string, v interface{})

WriteJson write a json file or die trying

Types

This section is empty.

Jump to

Keyboard shortcuts

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