match

package
v0.0.0-...-55c4e2f Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareTypes

func CompareTypes(a, b types.Type) bool

If both types are structs, return true. If both types are pointers, return true if both pointer underlying element are the same.

func GetUnderlyingType

func GetUnderlyingType(t types.Type) types.Type

func MatchFields

func MatchFields(a, b *types.Struct) (matchedFields [][2]*types.Var)

MatchFields matches by field name and type

if the type is a struct type, it will be deemed as matched.

Types

This section is empty.

Directories

Path Synopsis
testfiles
boo

Jump to

Keyboard shortcuts

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