util

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearSlice

func ClearSlice[T any](slice []T)

func FileExists

func FileExists(pathString string) bool

func RemoveSliceElement

func RemoveSliceElement[T any](slice *[]T, index int)

func TryFileExists

func TryFileExists(paths ...string) string

Types

type CountingWriter

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

func NewCountingWriter

func NewCountingWriter() *CountingWriter

func (*CountingWriter) Count

func (writer *CountingWriter) Count() int

func (*CountingWriter) Write

func (writer *CountingWriter) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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