gosupport

package
v0.0.365 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeGoPackage

func ComputeGoPackage(parentPath string) (string, error)

func LookupGoModule

func LookupGoModule(srcPath string) (*modfile.File, string, error)

func MakeGoPrivVar

func MakeGoPrivVar(input string) string

func MakeGoPubVar

func MakeGoPubVar(input string) string

func MakeType

func MakeType(imports *GoImports, pkg, typeName string) string

Types

type GoImports

type GoImports struct {
	PkgName string
	// contains filtered or unexported fields
}

func NewGoImports

func NewGoImports(pkgName string) *GoImports

func (*GoImports) Ensure

func (gi *GoImports) Ensure(typeUrl string) string

func (*GoImports) ImportMap

func (gi *GoImports) ImportMap() []singleImport

func (*GoImports) MustGet2

func (gi *GoImports) MustGet2(typeUrl string) string

type TypeDef

type TypeDef struct {
	GoImportURL, GoTypeName, GoName string
}

func (TypeDef) MakeType

func (dp TypeDef) MakeType(imports *GoImports) string

Jump to

Keyboard shortcuts

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