github.com/uvalib/orcid-access-ws@v0.0.0-20250612130209-7d062dbabf9d/orcidaccessws/handlers/version.go (about) 1 package handlers 2 3 import ( 4 "path/filepath" 5 "strings" 6 ) 7 8 // Version -- get the version information 9 func Version() string { 10 files, _ := filepath.Glob("buildtag.*") 11 if len(files) == 1 { 12 return strings.Replace(files[0], "buildtag.", "", 1) 13 } 14 15 return "unknown" 16 } 17 18 // 19 // end of file 20 //