fields

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFieldWithType

func FindFieldWithType(fields []*ast.Field, t ast.Expr) *ast.Field

Searches a field with a specific type in an array. Returns a field or nil.

func GetTypeStrName

func GetTypeStrName(t ast.Expr) string

Represents a string by expression type

func NewIdentWithType

func NewIdentWithType(t ast.Expr) *ast.Ident

Generates an identifier for a variable by type

Types

This section is empty.

Jump to

Keyboard shortcuts

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