Unverified Commit a523e649 authored by Alexander Zigelski's avatar Alexander Zigelski Committed by GitHub

Added VariableType helper function

parent fcd8d439
...@@ -897,6 +897,14 @@ func NotificationLevel(v NotificationLevelValue) *NotificationLevelValue { ...@@ -897,6 +897,14 @@ func NotificationLevel(v NotificationLevelValue) *NotificationLevelValue {
return p return p
} }
// VariableType is a helper routine that allocates a new VariableTypeValue
// to store v and returns a pointer to it.
func VariableType(v VariableTypeValue) *VariableTypeValue {
p := new(VariableTypeValue)
*p = v
return p
}
// Visibility is a helper routine that allocates a new VisibilityValue // Visibility is a helper routine that allocates a new VisibilityValue
// to store v and returns a pointer to it. // to store v and returns a pointer to it.
func Visibility(v VisibilityValue) *VisibilityValue { func Visibility(v VisibilityValue) *VisibilityValue {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment