util

package
v0.0.0-...-f5406f0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterMethods

func FilterMethods(dirAst map[string]*ast.Package, typeName string) (result []*ast.FuncDecl)

func GetInputAsJsDocType

func GetInputAsJsDocType(param *ast.Field) string

func GetInputAsName

func GetInputAsName(param *ast.Field, defaultName string) string

func GetInputAsTypeName

func GetInputAsTypeName(param *ast.Field) string

func GetScriptEnvMapping

func GetScriptEnvMapping() map[string]string

func ToJsDocName

func ToJsDocName(name string) string

func Uncapitalize

func Uncapitalize(s string) string

Types

type Info

type Info struct {
	Prefix    string
	Method    string
	Inputs    []Parameter
	InputsStr string
	Result    *Parameter
	Comment   string
}

func GetScriptEnvMethodTemplateInfos

func GetScriptEnvMethodTemplateInfos(pathToScriptenv string) (result []Info)

type Parameter

type Parameter struct {
	Name         string
	NameWithType string
	Type         string
}

func GetInputParameter

func GetInputParameter(param *ast.Field, defaultName string) (result Parameter)

Jump to

Keyboard shortcuts

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