Documentation ¶
Index ¶
- func ConvertImageOpacity(filePath string, outPath string, alphaValue uint8) error
- func Copyfile(source, destination string) error
- func GetEggColor(filePath string) (string, string, error)
- func LoadJSON(path string, e interface{}) error
- func Loadlang(path string) (map[string]string, error)
- func Makedir(path string) error
- func MarshalJSON(e interface{}, minify ...bool) ([]byte, error)
- func TitleCase(input string) string
- func UnmarshalJSON(data []byte, e interface{}) error
- func Walk(rootDir string) ([]string, error)
- func WriteFile(path string, b []byte) error
- func WriteJSON(path string, data interface{}) error
- func Writelang(path string, data map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertImageOpacity ¶
ConvertImageOpacity converts an image to specified alpha.
Example:
// Convert image to 10 alpha ConvertImageOpacity("image.png", "image_new.png" 10)
func GetEggColor ¶
GetEggColor returns the primary and secondary color for a spawn egg.
Example:
// Get egg color primary, secondary, err := GetEggColor("image.png")
func MarshalJSON ¶
func UnmarshalJSON ¶ added in v0.0.8
func Walk ¶
Walk walks the file tree rooted at rootDir, calling walkFn for each file or directory in the tree, including rootDir. All errors that arise visiting files and directories are filtered by walkFn. The files are walked in lexical order, which makes the output deterministic but means that for very large directories Walk can be inefficient. Walk does not follow symbolic links.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.