sections

package
v0.0.0-...-1c4df2c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Summary            = rendering.SummaryName
	Motivation         = rendering.MotivationName
	DeveloperGuide     = rendering.DeveloperGuideName
	OperatorGuide      = rendering.OperatorGuideName
	TeacherGuide       = rendering.TeacherGuideName
	GraduationCriteria = rendering.GraduationCriteriaName
	Readme             = rendering.ReadmeName
)

Variables

This section is empty.

Functions

func Filename

func Filename(name string) string

func IsAutogenerated

func IsAutogenerated(name string) bool

func Locations

func Locations(entries []Entry) []string

func NameForFilename

func NameForFilename(filename string) string

func Persist

func Persist(ss []Entry) error

Persist attempts persist all given sections; returning all errors

Types

type ByOrder

type ByOrder []string

func (ByOrder) Len

func (entries ByOrder) Len() int

func (ByOrder) Less

func (entries ByOrder) Less(i, j int) bool

func (ByOrder) Swap

func (entries ByOrder) Swap(i, j int)

type Entry

type Entry interface {
	Filename() string
	Name() string
	Content() []byte
	Persist() error
}

func AutoGeneratedFrom

func AutoGeneratedFrom(info renderingInfoProvider) ([]Entry, error)

func Open

func Open(prv sectionLocationsProvider) ([]Entry, error)

func Render

func Render(info renderingInfoProvider, name string) (Entry, error)

func RenderMissingForDraftlState

func RenderMissingForDraftlState(provider renderingInfoProvider) ([]Entry, error)

func RenderMissingForImplementableState

func RenderMissingForImplementableState(provider renderingInfoProvider) ([]Entry, error)

func RenderMissingForProvisionalState

func RenderMissingForProvisionalState(provider renderingInfoProvider) ([]Entry, error)

Directories

Path Synopsis
internal
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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