value

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package value converts one value type to another.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(field reflect.Value, value any) error

Set sets value into a field.

func SetFloat

func SetFloat[F constraints.Float](field reflect.Value, number F) error

SetFloat sets float number into a field.

func SetInteger

func SetInteger[I constraints.Integer](field reflect.Value, number I) error

SetInteger sets integer number into a field.

func SetSliceString

func SetSliceString(field reflect.Value, arr []string) error

SetSliceString sets slice of strings into a field.

func SetString

func SetString(field reflect.Value, str string) error

SetString sets string into a field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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