mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-24 00:28:18 +00:00
14 lines
255 B
Go
14 lines
255 B
Go
package helpers
|
|||
|
|||
import "k8s.io/apimachinery/pkg/util/intstr"
|
|||
|
|||
func IntToIntStr(value int) *intstr.IntOrString {
|
|||
v := intstr.FromInt(value)
|
|||
return &v
|
|||
}
|
|||
|
|||
func StringToIntStr(value string) *intstr.IntOrString {
|
|||
v := intstr.FromString(value)
|
|||
return &v
|
|||
}
|