template

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	Name string
	Type string
}

type Graph

type Graph struct {
	// contains filtered or unexported fields
}

A collection of elements and their dependencies

func NewGraph

func NewGraph() Graph

func (*Graph) Add

func (g *Graph) Add(item interface{})

func (Graph) Depth

func (g Graph) Depth(item interface{}) int

func (Graph) Get

func (g Graph) Get(from interface{}) []interface{}

func (Graph) Items

func (g Graph) Items() []interface{}

func (Graph) Len

func (g Graph) Len() int

func (Graph) Less

func (g Graph) Less(i, j int) bool
func (g *Graph) Link(from, to interface{})

func (Graph) Swap

func (g Graph) Swap(i, j int)
type Link struct {
	From interface{}
	To   interface{}
}

type Template

type Template map[string]interface{}

func (Template) Graph

func (t Template) Graph() Graph

Jump to

Keyboard shortcuts

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