github.com/jfrog/jfrog-cli-go@v1.22.1-0.20200318093948-4826ef344ffd/artifactory/utils/golang/utils.go (about) 1 package golang 2 3 import ( 4 "github.com/jfrog/gocmd/cmd" 5 "github.com/jfrog/jfrog-client-go/utils/errorutils" 6 "github.com/jfrog/jfrog-client-go/utils/log" 7 ) 8 9 func LogGoVersion() error { 10 output, err := cmd.GetGoVersion() 11 if err != nil { 12 return errorutils.CheckError(err) 13 } 14 log.Info("Using go:", output) 15 return nil 16 }