Files
threshold/internal/util/pointer.go
T
Jeff Mitchell cede1aec93 Add initial templating support to Vault credential libraries (#2569) (#2575)
Add initial templating support to Vault credential libraries

This adds support for templating various account and user values into
Vault dynamic credential library POST bodies and GET/POST paths.

It also unifies how parameters are used in grants, with backwards
compatibility.
2022-10-27 09:01:05 -04:00

9 lines
164 B
Go

package util
// Pointer is just a generic function to return a pointer of whatever type is
// given
func Pointer[T any](input T) *T {
ret := input
return &ret
}