package utils

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/cmd/gstack/utils"

Index

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
	StackCallPath string
}

Source Files

utils.go

Version
v3.104.6-rc0
Published
Mar 23, 2025
Platform
windows/amd64
Imports
9 packages
Last checked
3 minutes ago

Tools for package owners.