Help us shape the future of Go! Take the 2026 Go Developer Survey

typescript

package
v0.19.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Import

type Import struct {
	// contains filtered or unexported fields
}

func NewImport

func NewImport(location string) *Import

func (*Import) AddModule

func (i *Import) AddModule(name string)

func (*Import) AddModuleWithAlias

func (i *Import) AddModuleWithAlias(name, alias string)

func (*Import) AddTypeModule

func (i *Import) AddTypeModule(name string)

func (*Import) AddTypeModuleWithAlias

func (i *Import) AddTypeModuleWithAlias(name, alias string)

func (*Import) Alias

func (i *Import) Alias(name string) string

func (*Import) Default

func (i *Import) Default() string

func (*Import) IsType

func (i *Import) IsType(name string) bool

func (*Import) Location

func (i *Import) Location() string

func (*Import) Modules

func (i *Import) Modules() []string

func (*Import) SetDefault

func (i *Import) SetDefault(v string)

func (*Import) String

func (i *Import) String() string

type Imports

type Imports struct {
	// contains filtered or unexported fields
}

func NewImports

func NewImports() *Imports

func (*Imports) Import

func (i *Imports) Import(location string) *Import

func (*Imports) Write

func (i *Imports) Write(f *code.Section)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL