rename

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: BSD-3-Clause Imports: 0 Imported by: 0

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