Spaces:
Sleeping
Sleeping
File size: 398 Bytes
da3cde4 5d966be da3cde4 5d966be da3cde4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
package main
import (
"fmt"
"os"
"github.com/go-gota/gota/dataframe"
"github.com/gofiber/fiber/v2"
)
func main() {
app := fiber.New()
app.Get("/", func(c *fiber.Ctx) error {
filePath := "test/iris.csv"
file, err := os.Open(filePath)
if err != nil {
panic(err)
}
df := dataframe.ReadCSV(file)
fmt.Println(df)
return c.SendString("No error")
})
app.Listen(":3000")
}
|