Tag:Go process control

  • Go process control code

    Time:2019-8-8

    if The if conditional statement in Go does not need parentheses. It allows you to declare a variable. Any variable declared here can be used in all conditional branches. if x := 11; x > 10 { fmt.Println(“x is greater than 10”) } else { fmt.Println(“x is less than 10”) } goto Jump to a […]