boiler

module
v0.0.0-...-98c3dfa Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT

README

Golang Boilerplate

Actions Status Report card GoDoc License MIT

The project should;

  • be as explicit as possible
  • use interfaces as little as possible
  • easy to understand

Why only one service?

  • less interfaces
  • import cycles

Why only one storage?

  • less interfaces

Run

To start watching your files for modification;

$ make start-deps
$ make
Dependencies

MySQL and Memcache

pkg/entity or pkg/iface was changed?

$ make gen

./schema.graphql was changed?

$ make update-graphql-schema

ps; $ make will watch and run make gen and update-graphql-schema automatically

Directories

Path Synopsis
cmd
pkg
entity
Package entity contains all the entities of the project Package entity contains all the entities of the project
Package entity contains all the entities of the project Package entity contains all the entities of the project
graphql/internal
Package graphql contains all the graphql resources
Package graphql contains all the graphql resources
iface
Package iface contains all the interface of the system Package iface contains all the interface of the system
Package iface contains all the interface of the system Package iface contains all the interface of the system
log
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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