openconfig / ygot

A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
Apache License 2.0
286 stars 106 forks source link

Add Equal method for enumerated types for comparing against string #435

Open wenovus opened 4 years ago

wenovus commented 4 years ago

enumerations and identities can be a bit tedious when comparing, as their names are long.

An Equal method for every enumeration that compares against a string can help with this.

Useful references: The current String() method definition. EnumLogString's definition

wenovus commented 4 years ago

@vcheny