util

package
v0.0.0-...-37f43c3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package util provides miscellaneous utilities.

Index

Constants

This section is empty.

Variables

View Source
var DebugMode = false

DebugMode denotes the debug flag.

Functions

func ASTDebugString

func ASTDebugString(node ast.Node) string

ASTDebugString returns a debug string for the AST node.

func LocalTypeString

func LocalTypeString(typ types.Type, pkg *types.Package, imports []*ast.ImportSpec) (string, error)

LocalTypeString returns the local type string for typ, using pkg and imports information. TODO: use regexp.

Types

This section is empty.

Jump to

Keyboard shortcuts

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