Documentation ¶
Overview ¶
Package unit provides an empty, unit type.
Example ¶
package main import ( "fmt" "github.com/binaryphile/valor/tuple/unit" "unsafe" ) func main() { fmt.Println(unsafe.Sizeof(unit.Unit)) }
Output: 0
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Unit = Type{}
Unit is the value of the unit type.
It's empty and occupies no space in memory.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.