Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVReport

type CSVReport interface {
	SetHeader([]string)
	AddData([]string)
	Save() error
}

Report is the interface that wraps report information methods.

type Report

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

report is the implementation of Report

func NewCSVReport

func NewCSVReport(p string) (*Report, error)

New returns a new Report instance.

func (*Report) AddData

func (r *Report) AddData(d []string)

func (*Report) Save

func (r *Report) Save() error

func (*Report) SetHeader

func (r *Report) SetHeader(h []string)

func (*Report) SetPath

func (r *Report) SetPath(p string)

Jump to

Keyboard shortcuts

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