Wellington Alves das Neves

Results 16 comments of Wellington Alves das Neves

``` package main import "fmt" func main() { x := `como é bom poder aprender Golang ` fmt.Printf(x) } ```

package main import "fmt" const x int = 30 const y = 25 func main() { fmt.Println("Const with Type: ", x) fmt.Println("Const without Type: ", y) }

``` package main import "fmt" func main() { x := true if x == true { fmt.Println(x) } } ```

``` package main import "fmt" func main() { born := 1980 year := 2021 for { fmt.Println(born) born++ if born > year { break } } } ```

package main import "fmt" func main() { x := 100 fmt.Printf("DECIMAL: %d, BINARY: %b, HEXADECIMAL: %#x", x , x, x) }

``` package main import "fmt" func main() { fmt.Println(true && true) fmt.Println(true && false) fmt.Println(true || true) fmt.Println(true || false) fmt.Println(!false) } ```

``` package main import "fmt" func main() { esporteFavorito := "futebol" switch esporteFavorito { case "basquete": fmt.Println("o esporte favorito é basquete") case "vôlei": fmt.Println("o esporte favorito é vôlei") case "futebol":...

``` package main import "fmt" const ( _ = 1994 + iota b c d e ) func main() { fmt.Println( b, c, d, e) } ```

``` package main import "fmt" func main() { born := 1980 year := 2021 for born

``` package main import "fmt" func main() { isValid := 2 if isValid == 0 { fmt.Println("status 0") }else if isValid == 1 { fmt.Println("status 1") }else { fmt.Println("status inválido")...