update main.go

This commit is contained in:
aaron
2024-08-30 11:15:46 +02:00
parent d06b523f1b
commit ead975f8e2

View File

@@ -1,7 +1,15 @@
package publibike package main
import "fmt" import (
"fmt"
"publibike/api"
)
func main() { func main() {
fmt.Println("test") stations, err := api.GetAllStations()
if err != nil {
fmt.Println("Error fetching stations: ", err)
return
}
fmt.Printf("Fetched %d stations\n", len(stations))
} }