Documentation ¶
Index ¶
- Constants
- func ArchiveFolder(gamePath, gameID string) (data []byte, err error)
- func BinFromReader(r io.Reader) ([]byte, error)
- func BinToWriter(w io.Writer, data []byte) error
- func CopyFolder(oldPath, newPath string) error
- func CreateAndProcess[T any](path string, in T, cb func(w io.Writer, in T) error) error
- func CreateFolder(path string) error
- func CreateFolderIfNotExist(path string) error
- func GetFilenameWithoutExt(name string) string
- func Int64ToString(in int64) string
- func IsFileExist(path string) (isExist bool, err error)
- func IsFolderExist(path string) (isExist bool, err error)
- func JsonFromReader[T any](r io.Reader) (data *T, err error)
- func JsonToWriter[T any](w io.Writer, data T) error
- func ListOfFiles(path string) ([]string, error)
- func ListOfFolders(path string) ([]string, error)
- func MoveFolder(oldPath, newPath string) error
- func OpenAndProcess[T any](path string, cb func(r io.Reader) (T, error)) (res T, err error)
- func PathToAbsolutePath(path string) string
- func RemoveFile(path string) error
- func RemoveFolder(path string) error
- func StringToInt64(in string) (int64, error)
- func UnarchiveFolder(data []byte, gameID string, cfg *config.Config) (resultGameID string, err error)
Constants ¶
View Source
const (
DirPerm = 0755
)
Variables ¶
This section is empty.
Functions ¶
func ArchiveFolder ¶
func CopyFolder ¶
func CreateAndProcess ¶
func CreateFolder ¶
func CreateFolderIfNotExist ¶
func GetFilenameWithoutExt ¶
func Int64ToString ¶
func IsFileExist ¶
func IsFolderExist ¶
func ListOfFiles ¶
func ListOfFolders ¶
func MoveFolder ¶
func OpenAndProcess ¶
func PathToAbsolutePath ¶
func RemoveFile ¶
func RemoveFolder ¶
func StringToInt64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.