Last change
on this file since 822 was 822, checked in by yakumo.izuru, 22 months ago |
Prefer immortal.run over runit and rc.d, use vendored modules
for convenience.
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
File size:
1.1 KB
|
Line | |
---|
1 | // Copyright 2019 The Go Authors. All rights reserved.
|
---|
2 | // Use of this source code is governed by a BSD-style
|
---|
3 | // license that can be found in the LICENSE file.
|
---|
4 |
|
---|
5 | package proto
|
---|
6 |
|
---|
7 | // Bool stores v in a new bool value and returns a pointer to it.
|
---|
8 | func Bool(v bool) *bool { return &v }
|
---|
9 |
|
---|
10 | // Int32 stores v in a new int32 value and returns a pointer to it.
|
---|
11 | func Int32(v int32) *int32 { return &v }
|
---|
12 |
|
---|
13 | // Int64 stores v in a new int64 value and returns a pointer to it.
|
---|
14 | func Int64(v int64) *int64 { return &v }
|
---|
15 |
|
---|
16 | // Float32 stores v in a new float32 value and returns a pointer to it.
|
---|
17 | func Float32(v float32) *float32 { return &v }
|
---|
18 |
|
---|
19 | // Float64 stores v in a new float64 value and returns a pointer to it.
|
---|
20 | func Float64(v float64) *float64 { return &v }
|
---|
21 |
|
---|
22 | // Uint32 stores v in a new uint32 value and returns a pointer to it.
|
---|
23 | func Uint32(v uint32) *uint32 { return &v }
|
---|
24 |
|
---|
25 | // Uint64 stores v in a new uint64 value and returns a pointer to it.
|
---|
26 | func Uint64(v uint64) *uint64 { return &v }
|
---|
27 |
|
---|
28 | // String stores v in a new string value and returns a pointer to it.
|
---|
29 | func String(v string) *string { return &v }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.