Documentation ¶
Index ¶
- func Average(xs []float64) float64
- func MakeTimestamp() int64
- func RandomIntArray(size int32, max int32) []int32
- func RandomLongArray(size int32, max int64) []int64
- type Writer
- func (w *Writer) GetOutput() string
- func (w *Writer) UseConsole(value bool)
- func (w *Writer) Write(format string, a ...interface{}) (n int, err error)
- func (w *Writer) WriteColor(color string, format string, a ...interface{}) (n int, err error)
- func (w *Writer) WriteHeader(format string, a ...interface{}) (n int, err error)
- func (w *Writer) WriteLine(format string, a ...interface{}) (n int, err error)
- func (w *Writer) WriteNewLine() (n int, err error)
- func (w *Writer) WriteTitle(format string, a ...interface{}) (n int, err error)
- func (w *Writer) WriteValue(format string, a ...interface{}) (n int, err error)
- type WriterType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeTimestamp ¶
func MakeTimestamp() int64
func RandomIntArray ¶
func RandomLongArray ¶
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) UseConsole ¶
func (*Writer) WriteColor ¶
func (*Writer) WriteHeader ¶
func (*Writer) WriteNewLine ¶
func (*Writer) WriteTitle ¶
type WriterType ¶
type WriterType interface { Write(format string, a ...interface{}) (n int, err error) WriteLine(format string, a ...interface{}) (n int, err error) WriteColor(color string, format string, a ...interface{}) (n int, err error) WriteNewLine() (n int, err error) WriteHeader(format string, a ...interface{}) (n int, err error) WriteValue(format string, a ...interface{}) (n int, err error) WriteTitle(format string, a ...interface{}) (n int, err error) UseConsole(value bool) GetOutput() string }
func NewWriter ¶
func NewWriter(filePath string) WriterType
Click to show internal directories.
Click to hide internal directories.