update.go 258 B

1234567891011121314
  1. package client
  2. import (
  3. "fmt"
  4. )
  5. func UpdatePriceHisotry(client *FhoClient, price *PriceChangeHistory) error {
  6. err := client.update("station_price_updates", price)
  7. if err != nil {
  8. fmt.Println("update error:", err.Error())
  9. return err
  10. }
  11. return nil
  12. }