sMark

package
v0.0.0-...-08dbdac Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeImageBase64

func EncodeImageBase64(img image.Image) string

EncodeImageBase64 encodes an image in PNG format and convert it in base64

func ParseOption

func ParseOption(line string) (string, string)

ParseOption parses an Option String returning the Key and Value

Types

type Options

type Options struct {
	String  map[string]string
	Bool    map[string]bool
	Generic map[string]interface{}
}

Options are the parameters to the compilation. They can be obtained throught command line parameters or HeaderParagraphs

func NewOptions

func NewOptions() Options

NewOptions create a Options struct and initialize all maps

func (*Options) Insert

func (o *Options) Insert(key, value string)

Insert inserts a single value in the Option parsing it T, TRUE, 1, ON rapresent a Bool True F, FALSE, 0, OFF rapresent a Bool False All the other value are inserted as String If you need to insert a Generic Option you will need to insert it manually

func (*Options) Update

func (o *Options) Update(oo Options)

Update adds non specified value from the passed Options

Jump to

Keyboard shortcuts

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