Documentation ¶
Index ¶
- func CalculateMD5(bytes []byte) string
- func CalculateSHA1(bytes []byte) string
- func CopyFile(src, dst string) (int64, error)
- func DataDir(name string) (string, error)
- func DirectoryExists(path string) (bool, error)
- func FileExists(path string) (bool, error)
- func GetDifficultyRank(difficulty string) int
- func GetDifficultyString(rank int) string
- func GetOldDifficultyRank(rank int) int
- func NeedsMappingExtensions(diff *types.OldDifficultyJSON) bool
- func OpenFileSafe(path string) (*os.File, error)
- func PathExists(path string) (bool, error)
- func StringInSlice(a string, list []string) bool
- func StripQuotes(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateMD5 ¶
CalculateMD5 calculates an MD5 hex string
func CalculateSHA1 ¶
CalculateSHA1 calculates a SHA1 hex string
func DirectoryExists ¶
DirectoryExists checks for existence of a file at path
func FileExists ¶
FileExists checks for existence of a file at path
func GetDifficultyRank ¶
GetDifficultyRank get difficulty rank number from string
func GetDifficultyString ¶
GetDifficultyString get difficulty string from rank number
func GetOldDifficultyRank ¶
GetOldDifficultyRank get old difficulty rank number from new rank
func NeedsMappingExtensions ¶
func NeedsMappingExtensions(diff *types.OldDifficultyJSON) bool
NeedsMappingExtensions Checks for mapping extensions requirement
func OpenFileSafe ¶
OpenFileSafe creates all nested directories then opens the file
func PathExists ¶
PathExists checks for existence of an item at path
func StringInSlice ¶
StringInSlice checks for a string in a slice of strings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.