Documentation
¶
Index ¶
Constants ¶
View Source
const ( Loose = "P101" Sacked = "P104" UnitKG = "kg" UnitPallete = "Pal." )
Variables ¶
View Source
var URL = "https://1heiz-pellets.de/x_preis.php"
Functions ¶
This section is empty.
Types ¶
type PelletPrice ¶
type PelletPrice struct { Error string `json:"error"` BestPreis int `json:"bestPreis"` Bundesland string Fahrzeit string Lieferzeit string Gebiet string Lager string Lager_id string NettoEinzelpreisSK float64 `json:"nettoEinzelpreisSK"` NettoEinzelpreis float64 NettoEinzelpreisCal float64 NettoEinzelpreisMindestmenge float64 }
func FetchPriceForLoosePellets ¶
func FetchPriceForLoosePellets(amountInKg int) PelletPrice
func FetchPriceForSackedPellets ¶
func FetchPriceForSackedPellets(amountInPalettes int) PelletPrice
Click to show internal directories.
Click to hide internal directories.