Help us shape the future of Go! Take the 2026 Go Developer Survey

paper

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package paper holds the paper sizes editable files print on, and which a language prints on by default.

Index

Constants

This section is empty.

Variables

View Source
var Office = map[string]Size{
	"a4":     {"a4", "A4", 210, 297},
	"letter": {"letter", "US Letter", 215.9, 279.4},
}

Office are the sizes documents and speaker notes print on.

Functions

func For

func For(lang string, configured []string) []string

For are the papers a language prints on: the configured ones, or Letter and A4 for American English and A4 elsewhere.

func Label

func Label(key string) string

Label names a paper as buyers know it: US Letter, A4.

Types

type Size

type Size struct {
	Key, Label    string
	Width, Height float64
}

Size is a page size in millimetres.

Jump to

Keyboard shortcuts

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