File: version.go

package info (click to toggle)
golang-github-containers-dnsname 1.3.1%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 428 kB
  • sloc: makefile: 82; sh: 54
file content (14 lines) | stat: -rw-r--r-- 237 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package main

import "fmt"

// overwritten at build time
var gitCommit = "unknown"

const dnsnameVersion = "1.3.1"

func getVersion() string {
	return fmt.Sprintf(`CNI dnsname plugin
version: %s
commit: %s`, dnsnameVersion, gitCommit)
}