Go fmt and add missing `toml:"hmc"` tag
parent
b3fa772152
commit
b59ba24b35
4
main.go
4
main.go
|
@ -44,7 +44,7 @@ type Config struct {
|
|||
ApiUrl string `toml:"api_url"`
|
||||
SharedSecret string `toml:"shared_secret"`
|
||||
City string `toml:"city"`
|
||||
}
|
||||
} `toml:"hmc"`
|
||||
Postmark struct {
|
||||
ServerToken string `toml:"server_token"`
|
||||
ApiUrl string `toml:"api_url"`
|
||||
|
@ -469,7 +469,7 @@ func main() {
|
|||
maxIndexWidth := len(strconv.Itoa(len(subscribers)))
|
||||
for index, email := range subscribers {
|
||||
indexStr := strconv.Itoa(index + 1)
|
||||
indexStr = strings.Repeat(" ", maxIndexWidth - len(indexStr)) + indexStr // Right-align the index
|
||||
indexStr = strings.Repeat(" ", maxIndexWidth-len(indexStr)) + indexStr // Right-align the index
|
||||
fmt.Printf("%s. \033[1m%s\033[0m\n", indexStr, email)
|
||||
}
|
||||
fmt.Printf("\nMailing list grows automatically as more subscribe at \033[1mhandmadecities.com/meetups\033[0m\n")
|
||||
|
|
Loading…
Reference in New Issue