Help us shape the future of Go! Take the 2026 Go Developer Survey

task

package
v25.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TrueVal is the pb.TaskValue value equivalent to the "true" boolean.
	TrueVal = FromBool(true)
	// FalseVal is the pb.TaskValue value equivalent to the "false" boolean.
	FalseVal = FromBool(false)
)

Functions

func FromBool

func FromBool(val bool) *pb.TaskValue

FromBool converts the given boolean in to a pb.TaskValue object.

func FromFloat

func FromFloat(val float64) *pb.TaskValue

FromFloat converts the given float64 value into a pb.TaskValue object.

func FromInt

func FromInt(val int) *pb.TaskValue

FromInt converts the given int value into a pb.TaskValue object.

func FromString

func FromString(val string) *pb.TaskValue

FromString converts the given string in to a pb.TaskValue object.

func ToBool

func ToBool(val *pb.TaskValue) bool

ToBool converts the given pb.TaskValue object into a boolean.

func ToFloat

func ToFloat(val *pb.TaskValue) float64

ToFloat converts the given pb.TaskValue object into an integer. Note, this panics if there are not enough bytes in val.Val

func ToInt

func ToInt(val *pb.TaskValue) int64

ToInt converts the given pb.TaskValue object into an integer. Note, this panics if there are not enough bytes in val.Val

func ToString

func ToString(val *pb.TaskValue) string

ToString converts the given pb.TaskValue object into a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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