Advertisement
cwchen

[Go] if .. else demo

Sep 14th, 2017
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. )
  6.  
  7. func main() {
  8. x := 3
  9.  
  10. if x > 10 {
  11. fmt.Println("x is larger than 10")
  12. } else {
  13. fmt.Println("x is not larger than 10")
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement