utils

package
v0.0.0-...-f73ad7d Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePathIfNotExist

func CreatePathIfNotExist(filePath string) error

func GetRootPath

func GetRootPath() string

func InitService

func InitService()

func OpenFile

func OpenFile(filePath string, flag int, perm os.FileMode) (*os.File, error)

func PathExist

func PathExist(filePath string) (bool, error)

func ReadFile

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

func WriteFile

func WriteFile(filePath string, data []byte, perm os.FileMode) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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