helper

package
v0.0.0-...-2aac3fa Latest Latest
Warning

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

Go to latest
Published: May 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportFile

func ExportFile(node *ast.File, fs *token.FileSet, path string) error

ExportFile exports the node to a file

func UpdateFuncName

func UpdateFuncName(node *ast.File, targetFuncName, newFuncName string) *ast.File

UpdateFuncName updates the function name

func UpdatePackageName

func UpdatePackageName(node *ast.File, packageName string) *ast.File

UpdatePackageName updates the package name

func UpdateStringValue

func UpdateStringValue(node *ast.File, targetValue, newValue string) *ast.File

UpdateStringValue updates the string value

Types

This section is empty.

Jump to

Keyboard shortcuts

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