tagutils

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidLen = errors.New("mcproto: invalid len tag")

Functions

func CheckDependency

func CheckDependency(inter reflect.Value, field reflect.StructField) bool

checkDependency

returns false either if the dependency has not been found or the dependency was not met

returns true if the dependency has been found AND it's true

func GetLength

func GetLength(inter reflect.Value, field reflect.StructField) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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