utils

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package utils contains various utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dereference

func Dereference(t types.Type) types.Type

Dereference returns the underlying type of a pointer. If the input is not a pointer, then the type of the input is returned.

func FieldName

func FieldName(fa *ssa.FieldAddr) string

FieldName returns the name of the field identified by the FieldAddr. It is the responsibility of the caller to ensure that the returned value is a non-empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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