.github
alerting
client
config
controller
core
docs
example
jsonpath
k8s
k8stest
metric
pattern
security
storage
util
vendor
cloud.google.com
github.com
TwinProduction
beorn7
cespare
davecgh
go-ping
gogo
golang
protobuf
proto
buffer.go
defaults.go
deprecated.go
discard.go
extensions.go
properties.go
proto.go
registry.go
text_decode.go
text_encode.go
wire.go
wrappers.go
ptypes
AUTHORS
CONTRIBUTORS
LICENSE
google
googleapis
gorilla
imdario
json-iterator
matttproud
miekg
modern-go
prometheus
spf13
go.etcd.io
golang.org
google.golang.org
gopkg.in
k8s.io
sigs.k8s.io
modules.txt
watchdog
web
.dockerignore
.gitattributes
.gitignore
Dockerfile
LICENSE.md
Makefile
README.md
config.yaml
go.mod
go.sum
main.go
35 lines
1.2 KiB
Go
35 lines
1.2 KiB
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package proto
|
|
|
|
// Bool stores v in a new bool value and returns a pointer to it.
|
|
func Bool(v bool) *bool { return &v }
|
|
|
|
// Int stores v in a new int32 value and returns a pointer to it.
|
|
//
|
|
// Deprecated: Use Int32 instead.
|
|
func Int(v int) *int32 { return Int32(int32(v)) }
|
|
|
|
// Int32 stores v in a new int32 value and returns a pointer to it.
|
|
func Int32(v int32) *int32 { return &v }
|
|
|
|
// Int64 stores v in a new int64 value and returns a pointer to it.
|
|
func Int64(v int64) *int64 { return &v }
|
|
|
|
// Uint32 stores v in a new uint32 value and returns a pointer to it.
|
|
func Uint32(v uint32) *uint32 { return &v }
|
|
|
|
// Uint64 stores v in a new uint64 value and returns a pointer to it.
|
|
func Uint64(v uint64) *uint64 { return &v }
|
|
|
|
// Float32 stores v in a new float32 value and returns a pointer to it.
|
|
func Float32(v float32) *float32 { return &v }
|
|
|
|
// Float64 stores v in a new float64 value and returns a pointer to it.
|
|
func Float64(v float64) *float64 { return &v }
|
|
|
|
// String stores v in a new string value and returns a pointer to it.
|
|
func String(v string) *string { return &v }
|