package sizes

import "shirakumo.org/markless/sizes"

Contains size information for standardised size names. This is used to look up the actual size unit to use when a size is referred to by name.

Index

Variables

var Table map[string]Size = map[string]Size{
	"microscopic": Size{0.25, "em"},
	"tiny":        Size{0.5, "em"},
	"small":       Size{0.8, "em"},
	"normal":      Size{1.0, "em"},
	"big":         Size{1.5, "em"},
	"large":       Size{2.0, "em"},
	"huge":        Size{2.5, "em"},
	"gigantic":    Size{4.0, "em"},
}

Types

type Size

type Size struct {
	Value float32
	Unit  string
}

func Get

func Get(name string) (v Size, ok bool)