Commit 753f12b7 authored by Antoine Huret's avatar Antoine Huret

add Time func to get time.Time pointer as String/Int/Bool

parent b1d19585
......@@ -873,6 +873,14 @@ func String(v string) *string {
return p
}
// Time is a helper routine that allocates a new time.Time value
// to store v and returns a pointer to it.
func Time(v time.Time) *time.Time {
p := new(time.Time)
*p = v
return p
}
// AccessLevel is a helper routine that allocates a new AccessLevelValue
// to store v and returns a pointer to it.
func AccessLevel(v AccessLevelValue) *AccessLevelValue {
......
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