Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRefreshableFile ¶
func GenerateRefreshableFile(targetPackagePath, targetPackageName string, refreshableTypes RefreshableTypes) (*jen.File, error)
Types ¶
type RefreshableType ¶
A RefreshableType contains all the necessary information to generate an interface and implementation for the contained internal type. It is expected that a constructed refreshable type has already handled any potential naming collisions, so users of this type are safe to use the expressions and declarations returned from it's functions if all the RefreshableTypes used they same refreshableTypeGenerator.
type RefreshableTypes ¶
type RefreshableTypes []RefreshableType
RefreshableTypes is a container for RefreshableType which provides some convenience functions
func NewRefreshableTypes ¶
Click to show internal directories.
Click to hide internal directories.