Help us shape the future of Go! Take the 2026 Go Developer Survey

template

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: GPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadManifestDataAsObject

func LoadManifestDataAsObject(data interface{}, manifestDir string, loader Loader) (filepath string, res interface{}, err error)

func LoadManifestDataAsRawJson

func LoadManifestDataAsRawJson(data interface{}, manifestDir string) (filepath string, res json.RawMessage, err error)

func N

func N(n interface{}) ([]struct{}, error)

N returns a slice of n 0-sized elements, suitable for ranging over. (github.com/bradfitz)

Types

type Loader

type Loader struct {
	HTTPServerHost string
	ServerURL      *url.URL
	OAuthClient    util.OAuthClientsConfig
	Delimiters     delimiters
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader(datastore *datastore.Datastore) Loader

func (*Loader) Render

func (loader *Loader) Render(
	tmplBytes []byte,
	rootDir string,
	ctx interface{}) (res []byte, err error)

Jump to

Keyboard shortcuts

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