unit

package
v0.0.0-...-27d85d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 0 Imported by: 0

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

type Type

type Type = struct{}

Type is the unit type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL