common

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenInterface

func GenInterface(interfaceSuffix string, c plugin.CodeWriter, needInterfaceStructInfos []*markers.TypeInfo, root *loader.Package)

func GenProxyStruct

func GenProxyStruct(proxySuffix string, c plugin.CodeWriter, needProxyStructInfos []*markers.TypeInfo, root *loader.Package, debugMode bool)

func MatchFunctionByStructName

func MatchFunctionByStructName(functionSignature, structName string) (string, bool)

func ParseMethodInfoFromGoFiles

func ParseMethodInfoFromGoFiles(structName string, goFilesPath []string) []method

ParseMethodInfoFromGoFiles parse all methods, FIXME: now we don't support parse method signature with '\n' inner. like: func (s *ComplexService) RPCBasicType(name string, ageF64Ptr *float64) (string, error)

func ToFirstCharLower

func ToFirstCharLower(input string) string

func ToFirstCharUpper

func ToFirstCharUpper(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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