common_util

package
v0.0.0-...-0cbffd7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputFilePrefix                        = "tmp-output" //TODO: should this be csv?
	DefaultFileCreatePermission fs.FileMode = 0755
)

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(fileIdentifier string) (string, error)

CreateFile takes a unique identifier for a file and creates it in the current working directory it returns name of the file created along with any error if encountered

func ParseJsonTemplate

func ParseJsonTemplate(inputTemplate string, data []byte) (string, error)

func ReadFile

func ReadFile(fileName string) ([]byte, error)

func WriteFile

func WriteFile(fileName string, data []byte) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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