Documentation
¶
Overview ¶
Package ptrx used for inline point value
Example ¶
package main
import (
"fmt"
"github.com/machinefi/w3bstream/pkg/depends/x/ptrx"
)
func main() {
fmt.Println(*(ptrx.Int(10)))
fmt.Println(*(ptrx.Float64(10)))
fmt.Println(*(ptrx.String("abc")))
}
Output: 10 10 abc
Index ¶
- func Bool(v bool) *booldeprecated
- func Byte(v byte) *bytedeprecated
- func Duration(d time.Duration) *time.Durationdeprecated
- func Float32(v float32) *float32deprecated
- func Float64(v float64) *float64deprecated
- func Int(v int) *intdeprecated
- func Int16(v int16) *int16deprecated
- func Int32(v int32) *int32deprecated
- func Int64(v int64) *int64deprecated
- func Int8(v int8) *int8deprecated
- func Ptr[V any](v V) *V
- func Rune(v rune) *runedeprecated
- func String(v string) *stringdeprecated
- func Uint(v uint) *uintdeprecated
- func Uint16(v uint16) *uint16deprecated
- func Uint32(v uint32) *uint32deprecated
- func Uint64(v uint64) *uint64deprecated
- func Uint8(v uint8) *uint8deprecated
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.