Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
func (*Registry) Register ¶
Register registers the provided source to the specified tag in the registry.
func (*Registry) RegisteredVersions ¶ added in v0.6.0
RegisteredVersions returns an unordered list of the versions that are registered in this registry