Skip to content

Instantly share code, notes, and snippets.

@xrd
Created June 19, 2014 17:27
Show Gist options
  • Save xrd/dad15f9e0adda4c165db to your computer and use it in GitHub Desktop.
Save xrd/dad15f9e0adda4c165db to your computer and use it in GitHub Desktop.
Go doesn't help me here
package main
import "fmt"
func main() {
usingComma := -1
delimiter := ":"
if -1 == usingComma {
delimiter := ","
fmt.Println("Delimiter is " + delimiter)
}
fmt.Println("Delimiter is " + delimiter)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment