output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

output は、サンプル実行時の出力部分を抽象化するパッケージです.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrWriter

func ErrWriter() io.Writer

ErrWriter は、現在設定されている標準エラー出力用のio.Writerを返します.

func PrefixFormat

func PrefixFormat() string

PrefixFormat は、現在の prefix の フォーマットを返します

func SetErrWriter

func SetErrWriter(w io.Writer)

SetErrWriter は、標準エラー出力用のio.Writerを設定します.

func SetPrefixFormat

func SetPrefixFormat(f string)

SetPrefixFormat は、指定した値を prefix のフォーマットとして設定します.

func SetWriter

func SetWriter(w io.Writer)

SetWriter は、標準出力用のio.Writerを設定します.

func Stderrf

func Stderrf(prefix string, format string, values ...interface{})

Stderrf は、指定された接頭辞と書式付きの値を標準出力に出力します.

func Stderrl

func Stderrl(prefix string, values ...interface{})

Stderrl は、指定された接頭辞と値を標準エラー出力に出力します.

func Stdoutf

func Stdoutf(prefix string, format string, values ...interface{})

Stdoutf は、指定された接頭辞と書式付きの値を標準出力に出力します.

func Stdoutl

func Stdoutl(prefix string, values ...interface{})

Stdoutl は、指定された接頭辞と値を標準出力に出力します.

func Writer

func Writer() io.Writer

Writer は、現在設定されている標準出力用のio.Writerを返します.

Types

This section is empty.

Jump to

Keyboard shortcuts

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