update main.go
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
package publibike
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
"publibike/api"
|
||||
)
|
||||
|
||||
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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user