Skip to content

Example for a Web application based on Golang

License

Notifications You must be signed in to change notification settings

Antari-yan/simple_go_web_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Go Web App

This is a small example for running a go web application.
fmt is being used to the output and net/http to provide a HTTP server. It returns the used URL path.

Usage

Using docker you can simply run this app with:

docker compose up -d

Stopping:

docker compose down

Alternatively with go installed, the script can be run directly:

go run App/app.go

After starting the container or script you can access the site at http://localhost:8000 or some path like http://localhost:8000/test.