Unverified Commit fd4d48b0 authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

Merge pull request #664 from crunchtime-ali/patch-1

Added VariableType helper function
parents fcd8d439 a523e649
......@@ -897,6 +897,14 @@ func NotificationLevel(v NotificationLevelValue) *NotificationLevelValue {
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
// to store v and returns a pointer to it.
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