- 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
24 lines
267 B
Go
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
|
|
}
|