lib

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadRepo

func DownloadRepo(owner, repo, branch string) (string, error)

func ExtractFile

func ExtractFile(zipPath, dest string) error

func ToSnakeCase added in v0.0.2

func ToSnakeCase(s string) string

Types

type GolangTemplate

type GolangTemplate struct {
	// contains filtered or unexported fields
}

func OpenGolangTemplate

func OpenGolangTemplate(filepath string) (*GolangTemplate, error)

func (*GolangTemplate) RenameAllocationType

func (t *GolangTemplate) RenameAllocationType(source string, target string) error

func (*GolangTemplate) RenameFunction

func (t *GolangTemplate) RenameFunction(source string, target string) error

func (*GolangTemplate) RenameFunctionCall

func (t *GolangTemplate) RenameFunctionCall(source string, target string) error

func (*GolangTemplate) RenameFunctionResult

func (t *GolangTemplate) RenameFunctionResult(source string, target string) error

func (*GolangTemplate) RenameFunctionResultInCallExpr

func (t *GolangTemplate) RenameFunctionResultInCallExpr(source string, target string) error

func (*GolangTemplate) RenameReceiver

func (t *GolangTemplate) RenameReceiver(source string, target string) error

func (*GolangTemplate) RenameType

func (t *GolangTemplate) RenameType(source string, target string) error

func (*GolangTemplate) RenameVariableType

func (t *GolangTemplate) RenameVariableType(source string, target string) error

func (*GolangTemplate) Save

func (t *GolangTemplate) Save() error

func (*GolangTemplate) SetConstValue

func (t *GolangTemplate) SetConstValue(constName string, kind token.Token, value string) error

func (*GolangTemplate) SetPackageName added in v0.0.2

func (t *GolangTemplate) SetPackageName(packageName string) error

Jump to

Keyboard shortcuts

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