Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Facet ¶
type Facet struct {
Diamond diamond
}
Facet was implemented to fix weird import cycle issues. It acts as a base class for all facets, providing access to various parts of a parent diamond.Diamond via the unexported "diamond" interface. Yeah, it's as hacky as it sounds.
func NewFacet ¶
func NewFacet(f diamond) *Facet
NewFacet returns a *Facet, and should be passed something which quacks like a *diamond.Diamond.
Click to show internal directories.
Click to hide internal directories.