utils

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractJSONField

func ExtractJSONField[T any](raw []byte, field string) T

ExtractJSONField extracts the stream flag from JSON

func PtrTo

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

PtrTo returns a reference to v.

Types

type ConcurrentGroup

type ConcurrentGroup struct {
	// contains filtered or unexported fields
}

ConcurrentGroup is like errgroup.Group but differs in that an error in one goroutine will not interrupt the functioning of another. See https://pkg.go.dev/golang.org/x/sync/errgroup#Group.Go.

func NewConcurrentGroup

func NewConcurrentGroup() *ConcurrentGroup

func (*ConcurrentGroup) Go

func (c *ConcurrentGroup) Go(fn func() error)

func (*ConcurrentGroup) Wait

func (c *ConcurrentGroup) Wait() error

Jump to

Keyboard shortcuts

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