unit package - github.com/phelmkamp/valor/tuple/unit - Go Packages (original) (raw)
Overview ¶
Package unit provides an empty, unit type.
Example ¶
package main
import ( "fmt" "github.com/phelmkamp/valor/tuple/unit" "unsafe" )
func main() { fmt.Println(unsafe.Sizeof(unit.Unit)) }
Output:
0
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
type Type ¶
type Type = struct{}
Type is the unit type.