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.100.1
Published
Feb 28, 2025
Platform
windows/amd64
Imports
9 packages
Last checked
1 minute ago

Tools for package owners.