Minor formatting adjustments
This commit is contained in:
parent
43ebc5e4f3
commit
95a9088cc9
8
main.go
8
main.go
@ -37,13 +37,15 @@ func main() {
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
log.Msg.Info("Starting map-dots")
|
log.Msg.Info("Starting map-dots")
|
||||||
fmt.Println("\n" + ascii)
|
fmt.Print(ascii)
|
||||||
fmt.Println("Creating art from location data")
|
fmt.Println("Creating art from location data")
|
||||||
}
|
}
|
||||||
|
|
||||||
const ascii string = `███╗ ███╗ █████╗ ██████╗ ██████╗ ██████╗ ████████╗███████╗
|
const ascii string = `
|
||||||
|
███╗ ███╗ █████╗ ██████╗ ██████╗ ██████╗ ████████╗███████╗
|
||||||
████╗ ████║██╔══██╗██╔══██╗ ██╔══██╗██╔═══██╗╚══██╔══╝██╔════╝
|
████╗ ████║██╔══██╗██╔══██╗ ██╔══██╗██╔═══██╗╚══██╔══╝██╔════╝
|
||||||
██╔████╔██║███████║██████╔╝█████╗██║ ██║██║ ██║ ██║ ███████╗
|
██╔████╔██║███████║██████╔╝█████╗██║ ██║██║ ██║ ██║ ███████╗
|
||||||
██║╚██╔╝██║██╔══██║██╔═══╝ ╚════╝██║ ██║██║ ██║ ██║ ╚════██║
|
██║╚██╔╝██║██╔══██║██╔═══╝ ╚════╝██║ ██║██║ ██║ ██║ ╚════██║
|
||||||
██║ ╚═╝ ██║██║ ██║██║ ██████╔╝╚██████╔╝ ██║ ███████║
|
██║ ╚═╝ ██║██║ ██║██║ ██████╔╝╚██████╔╝ ██║ ███████║
|
||||||
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝`
|
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝
|
||||||
|
`
|
||||||
|
@ -14,7 +14,7 @@ func envCheck() {
|
|||||||
url := os.Getenv("TRACCAR_URL")
|
url := os.Getenv("TRACCAR_URL")
|
||||||
|
|
||||||
if user == "" || pass == "" || url == "" {
|
if user == "" || pass == "" || url == "" {
|
||||||
fmt.Println("To use Traccar, you must set the environment variables:\n'TRACCAR_USER', 'TRACCAR_PASS', and for CLI use only 'TRACCAR_DEVID'")
|
fmt.Println("To use Traccar, you must set the environment variables:\n'TRACCAR_USER', 'TRACCAR_PASS', 'TRACCAR_URL' and for CLI use only 'TRACCAR_DEVID'")
|
||||||
os.Stdout.Sync() // Flush the output buffer
|
os.Stdout.Sync() // Flush the output buffer
|
||||||
log.Msg.Fatal("Unable to read values from environment")
|
log.Msg.Fatal("Unable to read values from environment")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user