insunit

package
v0.0.0-...-5a6d1e8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 2 Imported by: 12

Documentation

Index

Constants

View Source
const (
	Unitless     Unit = 0
	Inches            = 1
	Feet              = 2
	Miles             = 3
	Millimeters       = 4
	Centimeters       = 5
	Meters            = 6
	Kilometers        = 7
	Microinches       = 8
	Mils              = 9
	Yards             = 10
	Angstroms         = 11
	Nanometers        = 12
	Microns           = 13
	Decimeters        = 14
	Decameters        = 15
	Hectometers       = 16
	Gigameters        = 17
	Astronomical      = 18
	LightYears        = 19
	Parsecs           = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type int8
const (
	Scientific Type = iota - 1 // We want decimal to be default of zero.
	Decimal                    // This will be zero.
	Engineering
	Architectural
	Fractional
	WindowsDesktop
)

func TypeFromString

func TypeFromString(str string) (Type, bool)

func (Type) Format

func (t Type) Format(f format.Formatter)

func (Type) String

func (t Type) String() string

type Unit

type Unit uint8

Unit is the drawing unit for AutoCAD DesignCenter Blocks

func UnitFromString

func UnitFromString(str string) (Unit, bool)

func (Unit) Format

func (u Unit) Format(f format.Formatter)

func (Unit) String

func (u Unit) String() string

Jump to

Keyboard shortcuts

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