go_microservice_example

command module
v0.0.0-...-f772103 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 7 Imported by: 0

README

Golang Microservice starter

Using go 1.11.5 version to build a Restful API Server.

Integration with bellow extensions.

Used modules:

Installation

Firstly you need to set GOROOT and GOPATH right path format. example bellow

export GOROOT=/usr/local/go
export GOPATH=$HOME/go

Second install all modules

go get -u github.com/gorilla/mux
Example Usage
go build -d micro
./micro

Go Application Structure

.
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── Dockerfile
├── LICENSE
├── README.md
├── config
│   └── config.go
├── contributors.txt
├── docker-compose.yml
├── helper
│   └── helper.go
├── main.go
├── main_test.go
├── micro.log
├── models
│   └── main.go
├── routes
│   ├── 404.go
│   ├── home.go
│   └── main.go
├── services
│   └── redis.go
└── utils
    ├── logger.go
    ├── middleware.go
    └── response.go

6 directories, 20 files

Changelog

  • Version 1.0 : Beta version

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