package
0.0.0-20241119232250-d9f28124968f
Repository: https://github.com/kaszanas/sc2infoextractorgo.git
Documentation: pkg.go.dev

# Functions

CreateTruncateFile receives a filepath and creates a file if it doesn't exist.
ExistingFilesSet creates a set of existing files in a directory.
GetOrCreateDirectory receives the path to the maps directory and creates it if it doesn't exist.
ListFiles creates a slice of filepaths from a give input directory based filtering supplied fileExtension.
ReadOrCreateFile receives a filepath, creates a file if it doesn't exist.
SaveReplayJSONFileToDrive is a helper function that takes the json string of a StarCraft II replay and writes it to drive.
UnmarshalJsonFile deals with every possible opening and unmarshalling problem that might occur when unmarshalling a localization file supplied by: https://github.com/Kaszanas/SC2MapLocaleExtractor.
UnmarshalJSONMapping wraps around unmarshalLocaleFile and returns an empty map[string]interface{} if it fails to unmarshal the original locale mapping file.