typescript

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTagName

func ParseTagName(value string) (string, error)

func ParseTagOmitempty

func ParseTagOmitempty(value string) (string, error)

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