oliversavio / youtube-vid-code

This repo contains code related to my YouTube videos
MIT License
31 stars 10 forks source link

go-api-starter not working #1

Open alvynabranches opened 1 year ago

alvynabranches commented 1 year ago
go run main.go
./main.go:25:9: undefined: InitFiberApplication
make build
swag init
make: swag: No such file or directory
make: *** [Makefile:24: swag] Error 127
alvynabranches commented 1 year ago

Why Youtubers always do content which is not working or has poor documentation?

oliversavio commented 1 year ago

Hello, I believe the README clearly illustrated the steps needed to run the code, it runs as a docker container. https://github.com/oliversavio/youtube-vid-code/blob/main/go-api-starter/README.md

If you wish to run the code in a development mode where you can modify the code test out change consider using https://github.com/cosmtrek/air. This is what I use during development

From your comment above it looks you're missing the step that installs swaggo/swag and hence the make build command is failing. I guess I could make the script a bit more beginner friendly and have it install the missing dependencies, something for my future videos.

In any case, thanks for the feedback, do let me know if you run into any more issues, I'll try my best to sort it out.