Documentation
¶
Index ¶
- type ImportMap
- func (im *ImportMap) Fetch(ctx context.Context) error
- func (im *ImportMap) GetShim() string
- func (im *ImportMap) Imports() (template.HTML, error)
- func (im *ImportMap) IncludeShim() bool
- func (im *ImportMap) Marshal() ([]byte, error)
- func (im *ImportMap) MarshalIndent() ([]byte, error)
- func (im *ImportMap) Render() (template.HTML, error)
- func (im *ImportMap) RootDir() string
- func (im *ImportMap) SetAssetsDir(d string)
- func (im *ImportMap) SetAssetsPath(d string)
- func (im *ImportMap) SetCacheDir(d string)
- func (im *ImportMap) SetClean(b bool)
- func (im *ImportMap) SetIncludeShim(b bool)
- func (im *ImportMap) SetRootDir(d string)
- func (im *ImportMap) SetShimSrc(s string)
- func (im *ImportMap) SetUseAssets(b bool)
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportMap ¶
type ImportMap struct {
Provider Provider
Packages []library.Package
Structure structure
// contains filtered or unexported fields
}
func (*ImportMap) IncludeShim ¶
IncludeShim returns includeShim
func (*ImportMap) MarshalIndent ¶
MarshalIndent returns the Structure as JSON in a pretty form.
func (*ImportMap) SetAssetsDir ¶
SetAssetsDir sets assetsDir to the desired value
func (*ImportMap) SetAssetsPath ¶
SetAssetsPath sets assetsPath to the desired value
func (*ImportMap) SetCacheDir ¶
SetCacheDir sets the path used for cache
func (*ImportMap) SetIncludeShim ¶
SetIncludeShim sets the flag to include the shim
func (*ImportMap) SetRootDir ¶
SetRootDir sets the root dir to use ase base for both cache and useAssets directory
func (*ImportMap) SetShimSrc ¶
SetShimSrc sets the source of the shim
func (*ImportMap) SetUseAssets ¶
SetUseAssets sets the flag to useAssets the files locally
Click to show internal directories.
Click to hide internal directories.