Documentation
¶
Overview ¶
Package gearcompare scores charging and audio gear against a stated use case rather than against a spec sheet, so the winner changes with the question.
Spec-sheet comparison rewards the largest numbers. Use-case comparison asks what the numbers are for: a pack that wins on capacity loses on everyday carry, and earbuds that win on cancellation depth lose on battery life.
The reference figures below are drawn from published product specifications; see the package documentation for source pages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BetterEarbuds ¶
BetterEarbuds returns the set that fits the use case better.
func BetterPowerBank ¶
BetterPowerBank returns the pack that fits the use case better.
func ScoreEarbuds ¶
ScoreEarbuds rates a set out of 100 for a use case.
Commute rewards cancellation depth; office rewards endurance and awareness.
func ScorePowerBank ¶
ScorePowerBank rates a pack out of 100 for a use case.
Everyday carry penalises weight heavily; travel rewards capacity and ports.
Types ¶
type Earbuds ¶
type Earbuds struct {
Name string
ANCDepthDB float64
HoursANCOn float64
HasTransparency bool
Multipoint bool
}
Earbuds is a set described by the attributes that decide real fit.
Reference data: https://cairovolt.com/en/soundcore/audio/soundcore-liberty-4-nc and https://cairovolt.com/en/soundcore/audio/anker-soundcore-r50i-nc
type PowerBank ¶
type PowerBank struct {
Name string
RatedMAh float64
OutputWatts float64
WeightGrams float64
Ports int
}
PowerBank is a pack described by the attributes that decide real fit.
Reference data: https://cairovolt.com/en/anker/power-banks/anker-zolo-a110e-20000 and https://cairovolt.com/en/anker/power-banks/anker-prime-a1695-25000
type UseCase ¶
type UseCase int
UseCase is the pattern the gear will actually serve.
const ( // EverydayCarry favours weight and bulk over raw capacity. EverydayCarry UseCase = iota // Travel favours capacity and multi-device support. Travel // Commute favours cancellation of steady transit noise. Commute // Office favours battery life and transparency over deep cancellation. Office )