Home

tmpl @main - refs - log -
https://git.jolheiser.com/tmpl.git
Template automation
Raw - main.go
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
package main

import (
	"os"

	"go.jolheiser.com/tmpl/cmd"

	"github.com/rs/zerolog"
	"github.com/rs/zerolog/log"
)

func main() {
	log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})

	app := cmd.NewApp()
	if err := app.Run(os.Args); err != nil {
		log.Fatal().Err(err).Msg("")
	}
}