go-generic/main.go
Dan Anglin 4fd8e37f68
chore: update project template
- update the Go version in forgejo workflow
- add a __build directory
- build the binary to the __build directory
- by default, do quick builds (builds without rebuilding all packages)
- add the install target
- add functions to generate the binary's build information
- add a skeleton run function in main.go
2024-05-30 11:51:54 +01:00

24 lines
267 B
Go

package main
import (
"fmt"
"os"
)
var (
binaryVersion string
buildTime string
goVersion string
gitCommit string
)
func main() {
if err := run(); err != nil {
fmt.Printf("ERROR: %v.\n", err)
os.Exit(1)
}
}
func run() error {
return nil
}