shine

module
v0.0.0-...-a6747d4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0

README

shine

shine logo

shine is a library written in go to create api server applications

License

Usage

Download and install shine:

$ go get -u github.com/alandtsang/shine/cmd/shine

Use shine to automatically generate the project, pkg is the name of the module, author is the name in the copyright.

$ shine -pkg myproject -author Alan
2021/03/03 10:26:40 [Info] project path: /Users/alan/myproject
$ cd myproject
$ go mod vendor
$ make build
$ ./main

   ____    __
  / __/___/ /  ___
 / _// __/ _ \/ _ \
/___/\__/_//_/\___/ v4.1.17
High performance, minimalist Go web framework
https://echo.labstack.com
____________________________________O/_______
                                    O\
⇨ http server started on [::]:8080

Execute in another terminal:

$ curl http://127.0.0.1:8080
"hello"

Help Command

$ shine -h
Usage of shine:
  -author string
    	author name (default "YourName")
  -pkg string
    	package name (default "myproject")

Directories

Path Synopsis
cmd
internal
tpl

Jump to

Keyboard shortcuts

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