Quick actions

cmd+k|ctrl+k

Navigation

Languages

Basic types / Booleans / Essential Go

Snippet info

Language

Go

Visibility

public

Author

kkowalczyk

Created

2019-03-26T10:02:28Z

Updated

2019-03-26T10:02:28Z

package main

import (
	"fmt"
	"unsafe"
)

func main() {
	b := true
	fmt.Printf("size of bool is: %d\n", unsafe.Sizeof(b))
}
INFO