os.Getenv("INSTANCE_ID")のように書く import "os" func getInstanceID() string{ var instanceId = os.Getenv("INSTANCE_ID") return instanceId } <スポンサーリンク>