github.com/Rookout/GoSDK@v0.1.48/pkg/utils/build_flags1.15.go (about) 1 //go:build go1.15 && !go1.18 2 // +build go1.15,!go1.18 3 4 package utils 5 6 import ( 7 "github.com/Rookout/GoSDK/pkg/rookoutErrors" 8 "runtime/debug" 9 ) 10 11 func GetBuildOpts() (map[string]string, *debug.BuildInfo, error) { 12 info, ok := debug.ReadBuildInfo() 13 if !ok { 14 return nil, nil, rookoutErrors.NewReadBuildFlagsError() 15 } 16 17 return nil, info, nil 18 } 19 20 func ValidateBuildOpts(opts map[string]string) error { 21 return nil 22 }