pkgutils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentGroupToString

func CommentGroupToString(comment *ast.CommentGroup) string

func DefaultTypeMap

func DefaultTypeMap(nodeTypes []string) map[string]int

func DefaultTypeNilMap

func DefaultTypeNilMap(nodeTypes []string) map[string]*int

func ExprToString

func ExprToString(expr ast.Expr) string

func FilePathExists

func FilePathExists(path string) error

func FormatStructName

func FormatStructName(expr *ast.SelectorExpr) string

func FromEmptyMapKeysToSlice

func FromEmptyMapKeysToSlice(someMap map[string]*int) []string

func MethodWithoutReceiver

func MethodWithoutReceiver(funcDecl *ast.FuncDecl) bool

func MethodWithoutRecvList

func MethodWithoutRecvList(funcDecl *ast.FuncDecl) bool

func NodeToCode

func NodeToCode(fset *token.FileSet, node any) string

func ParseFile

func ParseFile(src string, fset *token.FileSet) *ast.File

func ParseSource

func ParseSource(src string, fset *token.FileSet) *ast.File

Types

This section is empty.

Jump to

Keyboard shortcuts

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