utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CtxContext context key for custom context object
	CtxContext key = iota
)

Variables

This section is empty.

Functions

func MeasureTime

func MeasureTime(name string, start time.Time)

Types

type CustomData

type CustomData struct {
	PartialResult string
	Segments      []*Segments
}

func CustomContext

func CustomContext(ctx context.Context) (context.Context, *CustomData)

type ProcessData

type ProcessData struct {
	Original   string
	Punctuated string
}

type Segments

type Segments struct {
	Final       bool
	ID          int
	OriginalStr string
	Processed   []*ProcessData
}

Jump to

Keyboard shortcuts

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