Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active March 6, 2018 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/432df0d46c60ecdc22111ce70b184364 to your computer and use it in GitHub Desktop.
Save parzibyte/432df0d46c60ecdc22111ce70b184364 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main(){
accesoPermitido := false
edad := 18
if edad >= 18{
accesoPermitido = true
}
if accesoPermitido{ // Notar que no es necesario comparar accesoPermitido == true
fmt.Println("Acceso concedido!")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment