Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Network_study

This repo contains small network experiments in Go.

Server example:

  • sources/serveur.go: main HTTP server with graceful shutdown, logging, and routes
  • static/index.html: sample static file served at /static/

Run locally:

# run directly
go run ./sources

# or build and run
go build -o bin/server ./sources
./bin/server

Endpoints:

  • GET / -> "Hello Web!"
  • GET /health -> JSON {"status":"ok"}
  • POST /echo -> echoes received JSON body
  • GET /static/ -> serves files from ./static/

Shutdown: server supports graceful shutdown on SIGINT/SIGTERM (5s timeout).

About

This repo will contain my first projects that I will do to learn network development

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages