Documentation ¶
Index ¶
Constants ¶
View Source
const ( // WriterTypeText corresponds to the Writer returned by Text. WriterTypeText = WriterType(iota) // WriterTypeScorecard corresponds to the Writer returned by Scorecard. WriterTypeScorecard )
Variables ¶
View Source
var ErrorUnknownRepoWriterType = errors.New("unknown repo writer type")
Functions ¶
This section is empty.
Types ¶
type Writer ¶
Writer is a simple interface for writing a repo. This interface is to abstract output formats for lists of repository urls.
type WriterType ¶
type WriterType int
func (WriterType) MarshalText ¶
func (t WriterType) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface.
func (*WriterType) New ¶
func (t *WriterType) New(w io.Writer) Writer
New will return a new instance of the corresponding implementation of Writer for the given WriterType.
func (WriterType) String ¶
func (t WriterType) String() string
String implements the fmt.Stringer interface.
func (*WriterType) UnmarshalText ¶
func (t *WriterType) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.