utils

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithCancelChan

func ContextWithCancelChan(parent context.Context, done <-chan struct{}) context.Context

ContextWithCancelChan returns a new context derived from the given parent that is canceled when the given chan receives

func MinInt

func MinInt(a, b int) int

func NormalizeFilename

func NormalizeFilename(name string) string

func ParseHeaderLabels

func ParseHeaderLabels(h string) map[string]string

func SwapFileExt

func SwapFileExt(path string, ext string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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