Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Branches ¶
type Branches struct { // ActiveMilestones are the active Chromium milestones. ActiveMilestones []*chrome_branch.Branch `json:"active_milestones"` // Chromium release branches. Chromium *chrome_branch.Branches `json:"chromium"` }
Branches represents named branches in git repositories.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry manages a set of Templates, updating their values when Update is called.
func NewRegistry ¶
NewRegistry returns a Registry instance. Implicitly runs Update().
func (*Registry) Register ¶
Register the given Template. Implicitly Updates its value using the most recent Vars.
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
Template is a text template which uses the contents of Vars. It is technically thread-safe, but users should take care to cache the value of Template.String() rather than calling it repeatedly, unless Update() is only ever called within the same thread as String().
func NewTemplate ¶
NewTemplate returns a Template instance.
func (*Template) Equal ¶
Equal returns true iff the given Template is equivalent to this one. This allows us to test equality using deepequal.DeepEqual, despite the fact that text.Templates are never DeepEqual.
func (*Template) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Template) RawTemplate ¶
RawTemplate returns the raw string value of the Template.
func (*Template) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.