Documentation ¶
Index ¶
Constants ¶
View Source
const Prefix = "GO_DISCOGS_"
Variables ¶
View Source
var DslPattern = regexp.MustCompile(`^(mysql|postgres)://([^/]+:[^/]+)@([^/]+:\d+)(/.*)?$`)
View Source
var MonthPattern = regexp.MustCompile(`^(0?[1-9]|1[0-2])$`)
View Source
var PluralPattern = regexp.MustCompile(`^.*s$`)
View Source
var (
Types = map[string]struct{}{
"artists": {},
"labels": {},
"masters": {},
"releases": {},
}
)
View Source
var YearPattern = regexp.MustCompile(`^\d{4}$`)
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewRootCommand ¶
func ValidChunkSize ¶
func ValidDsnFormat ¶
func ValidTypes ¶
func ValidYearMonth ¶
ValidYearMonth validates year and month if it has given user command value.
Types ¶
type ConfigValidator ¶
type HomeDirSupplier ¶
Click to show internal directories.
Click to hide internal directories.