Skip to content

Instantly share code, notes, and snippets.

@foliea
Created July 6, 2014 13:58
Show Gist options
  • Save foliea/61f9a9c5715e06373bf0 to your computer and use it in GitHub Desktop.
Save foliea/61f9a9c5715e06373bf0 to your computer and use it in GitHub Desktop.
dilemn.go
param := "stop"
if api.APIVERSION.LessThan("1.14") {
param = "force"
}
var param string
if api.APIVERSION.LessThan("1.14") {
param = "force"
} else {
param = "stop"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment