Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRegistry = NewRegistry()
DefaultRegistry is the default instance of the typescript tagged version registry.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a thread-safe registry for storing tagged versions of the typescript source code.
func NewRegistry ¶
func NewRegistry() *Registry
NewRegistry creates a new instances of a version registry
func (*Registry) Get ¶
Get attempts to return the typescript source for the specified tag if it exists, otherwise it returns an error with a list of typescript versions that are supported by this registry.
func (*Registry) MustGet ¶
MustGet calls Get with the specified tag, but panics if the tag cannot be found.
func (*Registry) MustRegister ¶
MustRegister calls Register and panics if we're unable to register the version.
Click to show internal directories.
Click to hide internal directories.