Home

tmpl @d9564663dba12674ddec592cb969090e1d445195 - refs - log -
-
https://git.jolheiser.com/tmpl.git
Template automation
tmpl / main.go
- raw
 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("")
	}
}