Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Internal ¶
Internal returns the content of an internal asset registered under the given name, or nil when none was found.
func MockInternal ¶
MockInternal mocks the contents of an internal asset for use in testing.
func MockSnippetsForEdition ¶
func MockSnippetsForEdition(name string, snippets []ForEditions) (restore func())
MockSnippetsForEdition mocks the contents of per-edition snippets.
func SnippetForEdition ¶
SnippetForEdition returns a snippet registered under given name, applicable for the provided edition number.
Types ¶
type ForEditions ¶
type ForEditions struct { // First edition this snippet is used in FirstEdition uint // Snippet data Snippet []byte }
ForEditions wraps a snippet that is used in editions starting with FirstEdition.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.