1 // Copyright (c) 2014 The btcsuite developers
2 // Use of this source code is governed by an ISC
3 // license that can be found in the LICENSE file.
7 // Bool is a helper routine that allocates a new bool value to store v and
8 // returns a pointer to it. This is useful when assigning optional parameters.
9 func Bool(v bool) *bool {
15 // Int is a helper routine that allocates a new int value to store v and
16 // returns a pointer to it. This is useful when assigning optional parameters.
17 func Int(v int) *int {
23 // Uint is a helper routine that allocates a new uint value to store v and
24 // returns a pointer to it. This is useful when assigning optional parameters.
25 func Uint(v uint) *uint {
31 // Int32 is a helper routine that allocates a new int32 value to store v and
32 // returns a pointer to it. This is useful when assigning optional parameters.
33 func Int32(v int32) *int32 {
39 // Uint32 is a helper routine that allocates a new uint32 value to store v and
40 // returns a pointer to it. This is useful when assigning optional parameters.
41 func Uint32(v uint32) *uint32 {
47 // Int64 is a helper routine that allocates a new int64 value to store v and
48 // returns a pointer to it. This is useful when assigning optional parameters.
49 func Int64(v int64) *int64 {
55 // Uint64 is a helper routine that allocates a new uint64 value to store v and
56 // returns a pointer to it. This is useful when assigning optional parameters.
57 func Uint64(v uint64) *uint64 {
63 // Float64 is a helper routine that allocates a new float64 value to store v and
64 // returns a pointer to it. This is useful when assigning optional parameters.
65 func Float64(v float64) *float64 {
71 // String is a helper routine that allocates a new string value to store v and
72 // returns a pointer to it. This is useful when assigning optional parameters.
73 func String(v string) *string {