rename

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

package rename tests changing the names of methods and functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoRenamedFunc added in v0.3.5

func AutoRenamedFunc()

I should be renamed to auto_renamed_func, when generated with -rename flag

func SayHi

func SayHi() string

gopy:name say_hi_fn Comment follows the tag and function should be renamed to say_hi_fn

Types

type MyStruct

type MyStruct struct {
	// I should be renamed to auto_renamed_property
	// when generated with -rename flag
	AutoRenamedProperty string

	// I should be renamed to custom_name with the custom option
	AutoRenamedProperty2 string `gopy:"custom_name"`
}

MyStruct has two fields

func (*MyStruct) AutoRenamedMeth added in v0.3.5

func (s *MyStruct) AutoRenamedMeth()

I should be renamed to auto_renamed_meth, when generated with -rename flag

func (*MyStruct) SaySomethingFunc added in v0.3.5

func (s *MyStruct) SaySomethingFunc() (something string)

A method that says something gopy:name say_something

Jump to

Keyboard shortcuts

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