generated from templates/go-generic
fix issues with gosec and staticcheck
This commit is contained in:
parent
d25c157b20
commit
acb1aafe24
2 changed files with 2 additions and 9 deletions
|
@ -7,13 +7,6 @@ import (
|
||||||
"codeflow.dananglin.me.uk/apollo/indieauth-server/internal/executors"
|
"codeflow.dananglin.me.uk/apollo/indieauth-server/internal/executors"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
binaryVersion string
|
|
||||||
buildTime string
|
|
||||||
goVersion string
|
|
||||||
gitCommit string
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Set up logging
|
// Set up logging
|
||||||
loggingLevel := new(slog.LevelVar)
|
loggingLevel := new(slog.LevelVar)
|
||||||
|
|
|
@ -52,7 +52,7 @@ func (e *versionExecutor) printVersion() {
|
||||||
_, _ = tableWriter.Write([]byte("Go version:" + "\t" + info.GoVersion + "\n"))
|
_, _ = tableWriter.Write([]byte("Go version:" + "\t" + info.GoVersion + "\n"))
|
||||||
_, _ = tableWriter.Write([]byte("Build date:" + "\t" + info.BuildTime + "\n"))
|
_, _ = tableWriter.Write([]byte("Build date:" + "\t" + info.BuildTime + "\n"))
|
||||||
|
|
||||||
tableWriter.Flush()
|
_ = tableWriter.Flush()
|
||||||
|
|
||||||
os.Stdout.WriteString(builder.String())
|
_, _ = os.Stdout.WriteString(builder.String())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue