Documentation ¶
Index ¶
- type Config
- type Imports
- func (imps *Imports) Export(path string, exports ...string) (string, error)
- func (imps *Imports) ExportAll(path string) (string, error)
- func (imps *Imports) ExportAllAs(path, as string) (string, error)
- func (imps *Imports) FuncMap() template.FuncMap
- func (imps *Imports) Reserve(path string, exports ...string) (string, error)
- func (imps *Imports) ReserveAll(path, as string) (string, error)
- func (imps *Imports) ReserveDefault(path, defaultExport string, exports ...string) (string, error)
- func (imps *Imports) String() (string, error)
- func (imps *Imports) Use(export string) (string, error)
- func (imps *Imports) UseMaybe(export string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Imports ¶
type Imports struct {
// contains filtered or unexported fields
}
Imports keeps track of imports in a generated typescript file
func NewImports ¶
NewImports is the constructor for Imports filePath is path that's currently being written
func (*Imports) ReserveAll ¶
ReserveAll reserves importing all from a path as the alias
func (*Imports) ReserveDefault ¶
ReserveDefault reserves the default export from a path and a list of exports
Click to show internal directories.
Click to hide internal directories.