keps

package
v0.0.0-...-cb9dca5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(haystack []string, needle string) bool

Types

type ByCreationDate

type ByCreationDate Proposals

func (ByCreationDate) Len

func (b ByCreationDate) Len() int

func (ByCreationDate) Less

func (b ByCreationDate) Less(i, j int) bool

func (ByCreationDate) Swap

func (b ByCreationDate) Swap(i, j int)

type ByTitle

type ByTitle Proposals

func (ByTitle) Len

func (b ByTitle) Len() int

func (ByTitle) Less

func (b ByTitle) Less(i, j int) bool

func (ByTitle) Swap

func (b ByTitle) Swap(i, j int)

type Parser

type Parser struct {
}

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (p *Parser) Parse(in io.Reader) (*Proposal, error)

type Proposal

type Proposal struct {
	Title             string
	Authors           []string  `yaml:,flow`
	OwningSIG         string    `yaml:"owning-sig"`
	ParticipatingSIGs []string  `yaml:"participating-sigs",flow`
	Reviewers         []string  `yaml:,flow`
	Approvers         []string  `yaml:,flow`
	CreationDate      time.Time `yaml:"creation-date"`
	LastUpdated       time.Time `yaml:"last-updated"`
	Status            string
	SeeAlso           []string `yaml:"see-also"`

	Filename string `yaml:"-"`
}

func (*Proposal) Filter

func (p *Proposal) Filter(key, value string) bool

type Proposals

type Proposals []*Proposal

func (*Proposals) AddProposal

func (p *Proposals) AddProposal(proposal *Proposal)

func (*Proposals) SortBy

func (p *Proposals) SortBy(field string)

Jump to

Keyboard shortcuts

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