gtfmt

package
Version: v0.0.0-...-2f7d48a Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fix

func Fix(name, tpl, orig, repl string) (string, error)

Fix replaces orig with repl in tpl. tpl must be a valid go template. Orig must be a valid template function name or . path (e.g. .Foo.Bar). Paths *must* start with a ".".

func Format

func Format(name, tpl string) (string, error)

Format formats the code inside your template statements without changing any other surrounding text.

func Formatted

func Formatted(name, tpl string) (bool, error)

Formatted reports whether the text in the given template is correctly formatted.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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