How sarguna01/go-web-app--project1 works
A small Go website serves four static pages. A browser requests a route, the HTTP server dispatches to its handler, and that handler serves the corresponding HTML file. The source excerpt shows route registration and file serving; the README documents the server address and how to access the courses page.
Main entry points: main.go HTTP server · home.html Home page · courses.html Courses page · about.html About page
Components 10
Other components
- Browser visitor
- HTTP server
main.go - Home handler
main.go - Courses handler
main.go - About handler
main.go - Contact handler
main.go - Home page
static/home.html - Courses page
static/courses.html - About page
static/about.html - Contact page
static/contact.html
Connections 9
- Browser visitor → HTTP server: requests pages
README.md - HTTP server → Home handler: routes /home
main.go - HTTP server → Courses handler: routes /courses
main.go - HTTP server → About handler: routes /about
main.go - HTTP server → Contact handler: routes /contact
main.go - Home handler → Home page: serves file
main.go - Courses handler → Courses page: serves file
main.go - About handler → About page: serves file
main.go - Contact handler → Contact page: serves file
main.go