fs

package
v0.0.0-...-6603c43 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datasource

type Datasource struct {
	Root      string
	Extension string
}

Datasource is a simple "load directly from disk" datasource

func Default

func Default() *Datasource

Default creates a Datasource with sensible defaults

func (*Datasource) LoadContent

func (d *Datasource) LoadContent(name string) (string, error)

LoadContent is needed to fulfill giraffe.Datasource interface type

Jump to

Keyboard shortcuts

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