config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Rows       int
	Cols       int
	Margin     int
	Background string
	Grid       bool
	Border     bool
	Hints      bool

	Tiles map[string]jumble.Tile
}

Config defines a grid layout with all the tiles.

func Decode

func Decode(data []byte, uri string) (Config, error)

Decode parses the given buffer with our HCL content. The `uri` string is just for debugging purposes. On success this function returns a Config struct.

func DecodeURI

func DecodeURI(uri string) (Config, error)

DecodeURI parses the given uri with our HCL content.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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