tp

package
v0.0.0-...-bbb754b Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinDir

func BinDir() (string, error)

fmt.Sprintf("Ошибка, директория расположения программы не считывается: %v", err)

func CheckMkdir

func CheckMkdir(workFolder string) error

fmt.Sprintf("Ошибка, директория не может быть создана: %v", err)

func Contains

func Contains(s []int, e int) bool

not in slice

func CreateOpenFile

func CreateOpenFile(filePath string) (file *os.File, err error)

fmt.Sprintf("Ошибка при открытии файла %s: %v",filePath, err)

func DeleteFile

func DeleteFile(path string) error

func ExitWithSecTimeout

func ExitWithSecTimeout(status int)

func Fck

func Fck(err error)

func FckText

func FckText(text string, err error)

func FindReplace

func FindReplace(refStr string, old string, new string) string

func Getime

func Getime() string

func Hash32

func Hash32(s []byte) uint32

func IsError

func IsError(err error) bool

func OpenReadFile

func OpenReadFile(filePath string) (dat []byte, err error)

func OpenStandartConfig

func OpenStandartConfig(workDir string) (map[string]string, error)

func OpenWriteFile

func OpenWriteFile(filePath string) (file *os.File, err error)

func Round

func Round(x float64, prec int) float64

func WorkDir

func WorkDir() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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