mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-28 06:59:40 -08:00
b6955bf1ca
Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
19 lines
533 B
Go
19 lines
533 B
Go
package hcloud
|
|
|
|
import "time"
|
|
|
|
// String returns a pointer to the passed string s.
|
|
func String(s string) *string { return &s }
|
|
|
|
// Int returns a pointer to the passed integer i.
|
|
func Int(i int) *int { return &i }
|
|
|
|
// Bool returns a pointer to the passed bool b.
|
|
func Bool(b bool) *bool { return &b }
|
|
|
|
// Duration returns a pointer to the passed time.Duration d.
|
|
func Duration(d time.Duration) *time.Duration { return &d }
|
|
|
|
func intSlice(is []int) *[]int { return &is }
|
|
func stringSlice(ss []string) *[]string { return &ss }
|