Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PartInfo ¶
type PartInfo struct { Type string `csv:"Type"` // Can be CPU, GPU, SSD, HDD, USB, or RAM PartNum string `csv:"Part Number"` // Part Number or Exact Model Brand string `csv:"Brand"` // The brand of the product (Ex. EVGA) Model string `csv:"Model"` // Title of item Rank int `csv:"Rank"` // Ranking in benchmarks Benchmark float64 `csv:"Benchmark"` // Average benchmark score for the item Samples int `csv:"Samples"` // How many benchmarks were taken for the item URL string `csv:"URL"` // The URL on UserBenchmark for the part }
PartInfo holds the information for a particular part which can be of type CPU, GPU, SSD, HDD, USB, or RAM
func GetCPU ¶
GetCPU downloads and unmarshals all CPU information and returns a slice of the parts of type PartInfo
func GetGPU ¶
GetGPU downloads and unmarshals all GPU information and returns a slice of the parts of type PartInfo
func GetHDD ¶
GetHDD downloads and unmarshals all HDD information and returns a slice of the parts of type PartInfo
func GetRAM ¶
GetRAM downloads and unmarshals all RAM information and returns a slice of the parts of type PartInfo
func GetSSD ¶
GetSSD downloads and unmarshals all SSD information and returns a slice of the parts of type PartInfo
func GetUSB ¶
GetUSB downloads and unmarshals all USB information and returns a slice of the parts of type PartInfo
func UnmarshalCSV ¶
UnmarshalCSV converts a UserBenchmark CSV into a variable of type PartInfo for easier use