inspect

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExportedIdentifier

func IsExportedIdentifier(name string) bool

Types

type Field

type Field struct {
	Name       string
	Type       types.Type
	StructTag  string
	IsExported bool
}

func ExportedOrLocalFields

func ExportedOrLocalFields(strct *types.Struct, dstPkg *types.Package) []Field

ExportedOrLocalFields returns fields settable from the same package as dstPkg (exported fields anywhere, plus unexported when generating in the same package).

Jump to

Keyboard shortcuts

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