This document discusses an approach to building APIs using Go without frameworks. It recommends using the Go standard library along with small external packages for validation, routing, middleware, and SQL. The project structure separates code into packages for the API handler, middleware, user service implementation, and other files like configuration and documentation. Links are provided to the sample project and articles on developing APIs in Go using middlewares and API Blueprint.
7. pkg
user/
user.go (structs and service interface)
user_test.go (tests)
mysql.go (implementation of the service interface)
middleware/
Cors.go -> add cors headers
isAuthenticated.go -> request authentication