ioutil

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package ioutil GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrOpen

func CreateOrOpen(name string) (*os.File, error)

func NewCloser

func NewCloser(close func() error) io.Closer

Types

type ContextOperator added in v0.2.0

type ContextOperator[T any] interface {
	From(ctx context.Context) T
	With(ctx context.Context, a T) context.Context
}

func ContextFor added in v0.2.0

func ContextFor[T any](defaultValue T) ContextOperator[T]

type ProgressWriter

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

func NewProgressWriter

func NewProgressWriter(ctx context.Context, label string, size int64) *ProgressWriter

func (*ProgressWriter) Start

func (pw *ProgressWriter) Start()

func (*ProgressWriter) Stop

func (pw *ProgressWriter) Stop()

func (*ProgressWriter) Write

func (pw *ProgressWriter) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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