silgo

command module
v0.0.0-...-82ea28c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 1 Imported by: 0

README

silgo

      ___                       ___       ___           ___     
     /\  \          ___        /\__\     /\  \         /\  \    
    /::\  \        /\  \      /:/  /    /::\  \       /::\  \   
   /:/\ \  \       \:\  \    /:/  /    /:/\:\  \     /:/\:\  \  
  _\:\~\ \  \      /::\__\  /:/  /    /:/  \:\  \   /:/  \:\  \ 
 /\ \:\ \ \__\  __/:/\/__/ /:/__/    /:/__/_\:\__\ /:/__/ \:\__\
 \:\ \:\ \/__/ /\/:/  /    \:\  \    \:\  /\ \/__/ \:\  \ /:/  /
  \:\ \:\__\   \::/__/      \:\  \    \:\ \:\__\    \:\  /:/  / 
   \:\/:/  /    \:\__\       \:\  \    \:\/:/  /     \:\/:/  /  
    \::/  /      \/__/        \:\__\    \::/  /       \::/  /   
     \/__/                     \/__/     \/__/         \/__/    

环境要求

golang >= 1.19

入门示例

> git clone git@github.com:silfoxs/silgo.git
> cd silgo
> go mod tidy
> go run main.go silgo-api

Using config file: ./configs/dev.yaml
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /ping                     --> github.com/silfoxs/silgo/internal/app.Run.func1 (3 handlers)

参数示例

config 指定启动配置文件默认./configs/dev.yaml

--config=./configs/dev.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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