The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Flattener: Flat your structs to csv files and merge them after unmarshal.
Flattener:
How to use?
Marshal
Each struct that contains arrays must implement the Record interface.
For each array field in your struct add another field with type of your array field's type and also set tag of that array field to dash(-) to ignore for csv. e.g.,
struct Book{
Authors `csv:"-"` // please note csv tag value is dash.
Author `csv:"author_,inline"`
}
For each Array field in your struct create a new instance of Group and return created groups in the struct as return param of CSVGroups() method.
call to DecomposeRecords do decompose your records.
Simply call to the csvutil.Marshal method to marshal your list.
Unmarshal
Simply use csvutil.Unmarshal to unmarshal your csv records to your struct list.
Call to the ComposeRecords to group records and then merge them. it will return array of merged records.
type ScanGroupedCSVRecords struct {
// contains filtered or unexported fields
}
ScanGroupedCSVRecords is a scanner that you can use as bufio.Scanner's splitter.
e.g.,
sc:=bufio.NewScanner()
var split ScanGroupedCSVRecords
sc.Split(split.SplitFunc)