mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-11 14:54:23 -05:00
Add int64 pointerutil (#7973)
This commit is contained in:
parent
1645b20127
commit
47cffd09f9
1 changed files with 5 additions and 0 deletions
|
|
@ -26,3 +26,8 @@ func TimeDurationPtr(duration string) *time.Duration {
|
|||
func FileModePtr(o os.FileMode) *os.FileMode {
|
||||
return &o
|
||||
}
|
||||
|
||||
// Int64Ptr returns a pointer to an int64 value
|
||||
func Int64Ptr(i int64) *int64 {
|
||||
return &i
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue