util

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: MIT Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGpkg

func DefaultGpkg() string

DefaultGpkg is used when a data source isn't provided. Scans for files w/ '.gpkg' extension following logic described below, and chooses the first alphabetically. Returns the absolute path as a string.

1) scan the current working directory 2) if none found in the working directory and it exists, scan ./data/ 3) if none found in either of the previous and it exists, scan ./test_data/ 4) if none found, return an empty string

func RenderTemplate

func RenderTemplate(templateString string, data map[string]interface{}) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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