Documentation
¶
Overview ¶
Package fitment provides dirt bike plastic and graphics kit fitment lookup helpers across 175 model years, 76 models and 11 brands (motocross, enduro and electric).
Maintained from the open fitment catalog powering Custom Dirt Bike Graphics and its interactive dirt bike graphics designer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var RawJSON []byte
RawJSON holds the embedded fitment.json catalog bytes.
Functions ¶
func SameKit ¶
SameKit reports whether two model/year pairs share the exact same graphics kit layout.
func SharedFits ¶
SharedFits returns every model year sharing the same plastics with model and optional year.
Types ¶
type BikeFitment ¶
type BikeFitment struct {
ID string `json:"id"`
Brand string `json:"brand"`
Model string `json:"model"`
ReferenceYear *string `json:"reference_year"`
Category string `json:"category"`
Fits []string `json:"fits"`
}
BikeFitment describes one OEM plastic generation shared across sister models and years.
func FindKit ¶
func FindKit(model, year string) *BikeFitment
FindKit returns the reference bike whose graphics kit fits model and optional year (pass "" for any year).











