Udson Willams

Results 9 comments of Udson Willams

```go package main import "fmt" func main() { value := Closure() fmt.Println("ultimo valor: ", value()) } func Closure() func() int { x := 1 return func() int { for i...

```go package main import "fmt" type Pessoa struct { nome string sobrenome string idade int } // Ideia que tive func MudeMe_1(p Pessoa) Pessoa { pointer := &p.nome *pointer =...

Cap 9, EX 09 ```go package main import "fmt" func main() { my_map := map[string][]string{ "udson_willams": []string{"jogar ci es", "teste1"}, "elida_maria": []string{"viajar", "teste2"}, "jose_eduardo": []string{"vender produtos", "teste3"}, "everton_lima": []string{"andar de...

Achei esse ex muito bom, show professora! ```go package main import "fmt" type pessoa struct { Nome string Sobrenome string sabores []string } func main() { pessoa1 := pessoa{ Nome:...

Já que era o mesmo codigo, não reescrevi 2 vezes 😄 ```go package main import "fmt" func main() { value_1 := []int{1, 2, 3, 4, 5, 6, 7, 8, 9}...

Tentei fazer só com return, obg @Harsgaard pelo exemplo com retorno, tava bem perdido aqui kkkk ```go package main import ( "fmt" "math" ) type quadrado struct { lado float64...

Cap 9, EX 10: ```go package main import "fmt" func main() { my_map := map[string][]string{ "udson_willams": []string{"jogar ci es", "teste1"}, "elida_maria": []string{"viajar", "teste2"}, "jose_eduardo": []string{"vender produtos", "teste3"}, "everton_lima": []string{"andar de...

```go package main import ( "fmt" ) type erroEspecial struct { msg string extra string } func (err erroEspecial) Error() string { return fmt.Sprintf("Algo inesperado aconteceu: %v | %v", err.msg,...

```go package main import ( "errors" "fmt" "log" ) type sqrtError struct { lat string long string err error } func (se sqrtError) Error() string { return fmt.Sprintf("math error: %v...