utils

package
v0.0.0-...-5d4f8f2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRepoDirPerm = 0755
	ModelSubPath       = "saved_models"
	OutSubPath         = "out"
	DataSubPath        = "dataset"
	IgnoreFileName     = ".hfignore"
	ListSeparator      = "\n"
)
View Source
const (
	DefaultFilePerm = 0644
)

Variables

This section is empty.

Functions

func CreateComponentDirs

func CreateComponentDirs(repo_path, repo_name string) error

func CreateFileContent

func CreateFileContent(path string, content []byte, perm uint32) error

func DirExists

func DirExists(path string) bool

func ExitWithError

func ExitWithError(format string, args ...interface{})

func GetFileContent

func GetFileContent(path string) ([]byte, error)

func MkDirAll

func MkDirAll(path string, perm os.FileMode) error

func Open

func Open(path string) (*os.File, error)

func PathExists

func PathExists(path string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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