utils

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug() bool

func GetFuncInfo

func GetFuncInfo(fn *types.Func) (typeName, methodName string)

func RangeMapInOrder

func RangeMapInOrder[K comparable, V any](values map[K]V, sorter func(i, j K) bool, visitor func(K, V))

func UnwrapCall

func UnwrapCall(callExpr *ast.CallExpr) *ast.CallExpr

UnwrapCall unwrap and returns the first nested call e.g. unwrapCall(`a(b(c(d)), b1(c1))`) return `c(d)`

Types

This section is empty.

Jump to

Keyboard shortcuts

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