Documentation ¶
Index ¶
- func CreateFile(contents []byte, filename string, location string) error
- func DownloadFile(filepath string, url string) error
- func ErrGetBool(key string, err error) error
- func ErrMarshal(err error) error
- func ErrUnmarshal(err error) error
- func ErrUnmarshalInvalid(err error, typ reflect.Type) error
- func ErrUnmarshalSyntax(err error, offset int64) error
- func ErrUnmarshalType(err error, value string) error
- func ErrUnmarshalUnsupportedType(err error, typ reflect.Type) error
- func ErrUnmarshalUnsupportedValue(err error, value reflect.Value) error
- func Filepath() string
- func GetBool(key string) (bool, error)
- func GetHome() string
- func Git() (version, commitHead string)
- func Marshal(obj interface{}) (string, error)
- func MergeToTemplate(tpl []byte, data interface{}) ([]byte, error)
- func NewUUID() (string, error)
- func ReadRemoteFile(url string) (string, error)
- func StrConcat(s ...string) string
- func TcpCheck(ip string, port int32) bool
- func Unmarshal(obj string, result interface{}) error
- type Endpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶ added in v0.1.22
CreateFile creates a file with the given content on the given location with the given filename
func DownloadFile ¶
func ErrGetBool ¶
func ErrMarshal ¶
func ErrUnmarshal ¶
func ErrUnmarshalInvalid ¶ added in v0.1.25
func ErrUnmarshalSyntax ¶ added in v0.1.25
func ErrUnmarshalType ¶ added in v0.1.25
func ErrUnmarshalUnsupportedType ¶ added in v0.1.25
func ErrUnmarshalUnsupportedValue ¶ added in v0.1.25
func Git ¶
func Git() (version, commitHead string)
git method which allows fetch the git HEAD tag version and commit number
func MergeToTemplate ¶ added in v0.1.28
MergeToTemplate merges data into the template tpl and returns the result.
func ReadRemoteFile ¶ added in v0.1.24
Types ¶
Click to show internal directories.
Click to hide internal directories.