Documentation ¶
Index ¶
- Constants
- func ArchiveFolder(gamePath, gameID string) (data []byte, err error)
- func BinToWriter(w io.Writer, data []byte) 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 IsFolderExist(path string) (isExist bool, err error)
- func JsonToWriter[T any](w io.Writer, data T) error
- func PathToAbsolutePath(path string) string
- func RemoveFolder(path string) error
- func StringToInt(val string) int
- 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 CreateAndProcess ¶
func CreateFolder ¶
func CreateFolderIfNotExist ¶
func IsFolderExist ¶
func PathToAbsolutePath ¶
func RemoveFolder ¶
func StringToInt ¶ added in v0.2.0
func StringToInt64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.