package main import ( "flag" "git.thomasvoss.com/euro-cash.eu/src" "git.thomasvoss.com/euro-cash.eu/src/email" ) // components = map[string]templ.Component{ // "/coins": template.Coins(), // "/coins/designs": template.CoinsDesigns(), // "/coins/designs/nl": template.CoinsDesignsNl(), // "/coins/mintages": template.CoinsMintages(), // "/jargon": template.Jargon(), // } func main() { port := flag.Int("port", 8080, "port number") flag.BoolVar(&email.Config.Disabled, "no-email", false, "disables email support") flag.StringVar(&email.Config.Host, "smtp-host", "smtp.migadu.com", "SMTP server hostname") flag.IntVar(&email.Config.Port, "smtp-port", 465, "SMTP server port number") flag.StringVar(&email.Config.ToAddr, "email-to", "bugs@euro-cash.eu", "address to send error messages to") flag.StringVar(&email.Config.FromAddr, "email-from", "noreply@euro-cash.eu", "address to send error messages from") flag.StringVar(&email.Config.Password, "email-password", "", "password to authenticate the email client") flag.Parse() src.Run(*port) }