ptr

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool は bool 値からポインタを返します。

func Float64

func Float64(v float64) *float64

Float64 は float64 値からポインタを返します。

func Int

func Int(v int) *int

Int は int 値からポインタを返します。

func Ptr

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

Ptr は任意の型 T の値からポインタを返します。 この関数を使用するには、Go 1.18 以降が必要です。

func String

func String(v string) *string

String は string 値からポインタを返します。

Types

This section is empty.

Jump to

Keyboard shortcuts

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