conversions

package
v1.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringToSliceString

func StringToSliceString(src string, sep string) []string

StringToSliceString splits a string into a slice string according to separator

func ToPointer

func ToPointer[T any](val T) *T

ToPointer converts a value to a pointer

func ToPointerSlice

func ToPointerSlice[E any](s []E) []*E

ToPointerSlice converts a slice of values to a slice of pointers

func ToValue

func ToValue[T any](ptr *T) T

ToValue converts a pointer to a value

func ToValueSlice

func ToValueSlice[E any](s []*E) []E

ToValueSlice converts a slice of pointers to a slice of values

Types

This section is empty.

Jump to

Keyboard shortcuts

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