rules

package
v0.0.0-...-4d68494 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

The rules package of PrintDraftFast provides the tools around configuration of how a draft should look. The default should work but can be adjusted for a personal touch..

Index

Constants

This section is empty.

Variables

View Source
var Default = Set{
	"default": {
		Left:  1.5,
		Right: 1,
	},
	"h1": {
		Size: 2,
	},
	"center": {
		Left:  1.5,
		Right: 1,
		Align: "C",
	},
}

Functions

func Dump

func Dump(file string) error

Types

type Format

type Format struct {
	Right   float64
	Left    float64
	Font    string
	Style   string
	Size    float64
	Hide    bool
	Align   string
	Prefix  string
	Postfix string
}

type Set

type Set map[string]Format

func (Set) Get

func (s Set) Get(style string) (f Format)

type TOMLConf

type TOMLConf struct {
	Elements map[string]Set
	Scenes   map[string][]string
	// contains filtered or unexported fields
}

func DefaultConf

func DefaultConf() TOMLConf

func GetConf

func GetConf(file string) TOMLConf

func ReadFile

func ReadFile(file string) (TOMLConf, error)

Jump to

Keyboard shortcuts

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