feat: CLI-Skeleton mit version/serve/check und Makefile
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NBHF4R9EAejDJUMdwr6C68
This commit is contained in:
parent
bb84607bf8
commit
fbfff90b38
8 changed files with 196 additions and 0 deletions
14
cmd/vpnportal/buildinfo.go
Normal file
14
cmd/vpnportal/buildinfo.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Per -ldflags gesetzt; siehe Makefile.
|
||||
var (
|
||||
version = "dev"
|
||||
commit = "none"
|
||||
date = "unknown"
|
||||
)
|
||||
|
||||
func versionString() string {
|
||||
return fmt.Sprintf("vpnportal %s (commit %s, built %s)", version, commit, date)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue