utils

package
v3.94.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixSource

func FixSource(fset *token.FileSet, path string, src []byte, listOfArgs []FunctionIDArg) ([]byte, error)

func ReadFile

func ReadFile(filename string, info fs.FileInfo) ([]byte, error)

func WriteFile

func WriteFile(filename string, formatted []byte, perm fs.FileMode) error

Types

type FunctionIDArg

type FunctionIDArg struct {
	FuncDecl *ast.FuncDecl
	ArgPos   token.Pos
	ArgEnd   token.Pos
}

Jump to

Keyboard shortcuts

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