Skip to content

Commit

Permalink
Provide a Type() API for Mkey
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed Apr 15, 2024
1 parent c8d380f commit 88acea1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions comid/measurement.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ func (o Mkey) IsSet() bool {
return o.Value != nil
}

// Type returns the type of Mkey
func (o Mkey) Type() string {
return o.Value.Type()
}

// Valid returns nil if the Mkey is valid or an error describing the problem,
// if it is not.
func (o Mkey) Valid() error {
Expand Down

0 comments on commit 88acea1

Please sign in to comment.