Skip to content

rahilsh/go-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-server

Go module: github.com/rahilsh/go-server (requires Go 1.25+)

Build & run server

go run server.go

Or build and run:

go build -o server server.go
./server

Make an API call

curl localhost:3000/

Response:

Hello world!

List books endpoint

curl localhost:3000/books

Run client

The client fetches a TODO from JSONPlaceholder:

go run client.go

About

Simple golang server

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors

Languages