template-go-web-server

command module
v0.0.0-...-93b70cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 5 Imported by: 0

README

Software License Build status Release

Golang REST web server template repository

Uses echo as the web framework.


Clone and replace template-go-web-server with the name of your project.

Github action will use goreleaser to automatically releases formula to homebrew repo at hoto/homebrew-repo on every git tag.

Installation

Mac:

brew install hoto/repo/template-go-web-server

Mac or Linux:

sudo curl -L \
  "https://github.com/hoto/template-go-web-server/releases/download/1.0.0/template-go-web-server_1.0.0_$(uname -s)_$(uname -m)" \
   -o /usr/local/bin/template-go-web-server

sudo chmod +x /usr/local/bin/template-go-web-server

Or manually download binary from releases.

Run
template-go-web-server --help
template-go-web-server --version
template-go-web-server --port 5000

curl localhost:5000
Development

Build and test:

go get github.com/hoto/template-go-web-server

make dependencies build test

Build binary:

 make build
./bin/template-go-web-server

Run with arguments:

make args="myargs" run

Install to global golang bin directory:

make install
template-go-web-server

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL