Documentation ¶
Index ¶
- Constants
- Variables
- func ColorPrintf(format string, a ...any)
- func GetInputPath(path string) (string, error)
- func GetOutputFileNoExt(originFile string) string
- func GetOutputFileWithExt(originFile, ext string) string
- func InitJSONConfig(receiver any, fileName string)
- func InitYAMLConfig(receiver any, fileName string)
- func ReadM3U(file string) (s types.Slice[*types.MP3], err error)
- func SearchConfigFile(fileName string, searchPaths ...string) (string, error)
- func SnowflakeMachineID() uint16
- func SnowflakeNode() (*snowflake.Node, error)
- func WriteCSV(s types.Slice[*types.MP3], outputFile string) error
- func WriteChart(s types.Slice[*types.MP3], outputFile string) error
- type City
Constants ¶
Variables ¶
View Source
var (
ErrConfigFileMissing = errors.New("config file missing")
)
Functions ¶
func ColorPrintf ¶
func GetInputPath ¶
func GetOutputFileNoExt ¶
func GetOutputFileWithExt ¶
func InitJSONConfig ¶ added in v1.1.5
func InitYAMLConfig ¶ added in v1.1.5
func SearchConfigFile ¶ added in v1.1.5
func SnowflakeMachineID ¶
func SnowflakeMachineID() uint16
func SnowflakeNode ¶ added in v1.1.8
Types ¶
type City ¶ added in v1.1.8
type City struct {
// contains filtered or unexported fields
}
func (*City) ContinentCode ¶ added in v1.1.8
func (*City) ContinentName ¶ added in v1.1.8
func (*City) CountryCode ¶ added in v1.1.8
func (*City) CountryName ¶ added in v1.1.8
Source Files ¶
Click to show internal directories.
Click to hide internal directories.