"Fossies" - the Fresh Open Source Software Archive

Member "geoipupdate-4.3.0/cmd/geoipupdate/version.go" (16 Apr 2020, 183 Bytes) of package /linux/misc/geoipupdate-4.3.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Go source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "version.go": 4.2.0_vs_4.2.1.

    1 // +build go1.12
    2 
    3 package main
    4 
    5 import "runtime/debug"
    6 
    7 func init() {
    8     if info, ok := debug.ReadBuildInfo(); ok && info.Main.Version != "(devel)" {
    9         version = info.Main.Version
   10     }
   11 }