writer

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

DO NOT EDIT! Code generated.

Index

Constants

This section is empty.

Variables

View Source
var WriterNone _WriterNone

Functions

func NewWriterDefWithConfig

func NewWriterDefWithConfig(ctx context.Context, conf *Config) io.Writer

func NewWriterRefWithConfig

func NewWriterRefWithConfig(ctx context.Context, conf *Config) io.Writer

func WriterGet

func WriterGet(ctx context.Context, name string, defaults io.Writer) io.Writer

func WriterPut

func WriterPut(ctx context.Context, name string, def io.Writer) io.Writer

Types

type Config

type Config struct {
	Name string
	Def  io.Writer `json:",omitempty"`
}

type Writer

type Writer struct {
	Name string
	Def  io.Writer
	Ctx  context.Context
}

func (*Writer) Write

func (o *Writer) Write(a []uint8) (int, error)

Jump to

Keyboard shortcuts

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