Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 16, 2019 18:08
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/ddd934249bc6f5a3004bfd497c1edbe5 to your computer and use it in GitHub Desktop.
Save parzibyte/ddd934249bc6f5a3004bfd497c1edbe5 to your computer and use it in GitHub Desktop.
package main
import "fmt"
/*
Recuerda establecer a 32 bits con:
SET PATH=D:\Go32\go\bin;%PATH% && SET GOROOT=D:\Go32\go\
(Obviamente cambiando las rutas)
*/
// Código tomado de https://grokbase.com/t/gg/golang-nuts/14c1mpnz2e/go-nuts-is-code-running-on-32-bit-or-64-bit-platform
const es64Bits = uint64(^uint(0)) == ^uint64(0)
func main() {
fmt.Println("¿Es de 64 bits?", es64Bits)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment