sashaaKr / gohttpserver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

  1. For a new golang project, first run
got mod init NAME

NAME - should be something like github.com/sashaaKr/gohttpserver This will create go.mod file

  1. Now you can install packages with
go get github.com/sirupsen/logrus

It will add dependency to go.mod file and crate go.sum file with all fixed versions

Getting started

go build
./gohttpserver
curl localhost:8080

Build with docker

docker build -t gohttpserver .
docker run -p 8080:8080 gohttpserver .

About