Versions in this module Expand all Collapse all v1 v1.0.1 Aug 6, 2026 v1.0.0 Aug 6, 2026 Changes in this version + func Bottleneck(chargerWatts, deviceWatts float64, c Cable) string + type Cable struct + Amps float64 + Data DataMode + LengthMeters float64 + VideoAltMode bool + func (c Cable) Explain() string + func (c Cable) MaxWatts() float64 + func (c Cable) PassiveLengthOK() bool + func (c Cable) SupportsWatts(watts float64) bool + type DataMode int + const ChargeOnly + const USB2 + const USB32Gen1 + const USB32Gen2 + const USB4 + func (d DataMode) Mbps() int + func (d DataMode) String() string