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

Merge pull request #675 from ahuret/new-func-time-pointer

add Time func to get time.Time pointer as String/Int/Bool
parents 50bdd5d3 753f12b7
......@@ -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