Versions in this module Expand all Collapse all v0 v0.0.16 Oct 4, 2021 Changes in this version + func GoToolsAssumedPackageName(importPath string) string + type Import struct + func (s *Import) Alias() string + func (s *Import) GoFragment() string + func (s *Import) PackageName() string + func (s *Import) Path() string + type Imports struct + func NewImports(options ...ImportsOption) *Imports + func (i *Imports) AssumedPackageName(importPath string) string + func (i *Imports) FindByImportPath(importPath string) *Import + func (i *Imports) FindByPackageName(packageName string) *Import + func (i *Imports) Register(importPath string) *Import + func (i *Imports) RegisterAliased(importPath, alias string) (*Import, error) + type ImportsOption struct + func UseAssumedPackageNameFunc(f func(importPath string) string) ImportsOption