ptrx

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool deprecated

func Bool(v bool) *bool

Deprecated: use Ptr instead. if your go version greater than 1.18

func Byte deprecated

func Byte(v byte) *byte

Deprecated: use Ptr instead. if your go version greater than 1.18

func Duration deprecated

func Duration(d time.Duration) *time.Duration

Deprecated: use Ptr instead. if your go version greater than 1.18

func Float32 deprecated

func Float32(v float32) *float32

Deprecated: use Ptr instead. if your go version greater than 1.18

func Float64 deprecated

func Float64(v float64) *float64

Deprecated: use Ptr instead. if your go version greater than 1.18

func Int deprecated

func Int(v int) *int

Deprecated: use Ptr instead. if your go version greater than 1.18

func Int16 deprecated

func Int16(v int16) *int16

Deprecated: use Ptr instead. if your go version greater than 1.18

func Int32 deprecated

func Int32(v int32) *int32

Deprecated: use Ptr instead. if your go version greater than 1.18

func Int64 deprecated

func Int64(v int64) *int64

Deprecated: use Ptr instead. if your go version greater than 1.18

func Int8 deprecated

func Int8(v int8) *int8

Deprecated: use Ptr instead. if your go version greater than 1.18

func Ptr

func Ptr[V any](v V) *V

func Rune deprecated

func Rune(v rune) *rune

Deprecated: use Ptr instead. if your go version greater than 1.18

func String deprecated

func String(v string) *string

Deprecated: use Ptr instead. if your go version greater than 1.18

func Uint deprecated

func Uint(v uint) *uint

Deprecated: use Ptr instead. if your go version greater than 1.18

func Uint16 deprecated

func Uint16(v uint16) *uint16

Deprecated: use Ptr instead. if your go version greater than 1.18

func Uint32 deprecated

func Uint32(v uint32) *uint32

Deprecated: use Ptr instead. if your go version greater than 1.18

func Uint64 deprecated

func Uint64(v uint64) *uint64

Deprecated: use Ptr instead. if your go version greater than 1.18

func Uint8 deprecated

func Uint8(v uint8) *uint8

Deprecated: use Ptr instead. if your go version greater than 1.18

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL