utils

package
v0.0.0-...-cf2ac4b Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJSONObjectFromFile

func GetJSONObjectFromFile(filepath string, object interface{}) error

GetJSONObjectFromFile Fills the object with the content of a file

func GetJSONObjectFromFileWithHash

func GetJSONObjectFromFileWithHash(filepath string, object interface{}) ([]byte, error)

GetJSONObjectFromFileWithHash Fills the object with the content of a file

func ParseDuration

func ParseDuration(str string) time.Duration

func ParseInt64

func ParseInt64(value string) int64

func ReadFileContent

func ReadFileContent(filepath string) (*string, error)

ReadFileContent reads the content of a file a returns a pointer to it

func ReadInverseFileContent

func ReadInverseFileContent(filepath string, maxLines int) (*string, error)

ReadInverseFileContent reads the content of a file a returns a pointer to it

Types

This section is empty.

Jump to

Keyboard shortcuts

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