Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "export {csv | json}", Short: "Prints all modules and their licenses in either CSV or JSON format for license compliance usecases.", Example: "go-licenses export csv > licenses.csv", Args: cobra.ExactArgs(1), RunE: runCommand, }
Functions ¶
This section is empty.
Types ¶
type CSVWriter ¶
type CSVWriter struct {
// contains filtered or unexported fields
}
func NewCSVWriter ¶
type JSONWriter ¶
type JSONWriter struct {
// contains filtered or unexported fields
}
func NewJSONWriter ¶
func NewJSONWriter(output io.Writer) *JSONWriter
func (*JSONWriter) WriteModules ¶
func (writer *JSONWriter) WriteModules(mods []modules.Module) error
Click to show internal directories.
Click to hide internal directories.