18 lines
184 B
Go
18 lines
184 B
Go
|
package lib
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func AsTimeP(t time.Time) *time.Time {
|
||
|
return &t
|
||
|
}
|
||
|
|
||
|
func AsInt32P(v int32) *int32 {
|
||
|
return &v
|
||
|
}
|
||
|
|
||
|
func AsStringP(str string) *string {
|
||
|
return &str
|
||
|
}
|