https://github.com/funswe-zz/flow-example
this is a example of flow(https://github.com/funswe/flow)
https://github.com/funswe-zz/flow-example
example flow go golang web
Last synced: 9 months ago
JSON representation
this is a example of flow(https://github.com/funswe/flow)
- Host: GitHub
- URL: https://github.com/funswe-zz/flow-example
- Owner: funswe-zz
- License: mit
- Created: 2019-05-24T09:38:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-10T02:46:38.000Z (over 6 years ago)
- Last Synced: 2025-02-18T01:44:03.273Z (11 months ago)
- Topics: example, flow, go, golang, web
- Language: Go
- Homepage:
- Size: 16 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flow-example
this is a example of flow
# 安装
go get -u github.com/funswe/flow-example
# 运行(前提是GOPATH的bin目录在PATH里)
查看帮助
```
flow-example -h
Usage of flow-example:
-address string
set listen address (default "localhost:9505")
-app-name string
set app name (default "flow-example")
-h this help
-log-path string
set log path (default "当前路径下的logs目录")
-logger-level string
set logger level (default "debug")
-proxy
set proxy mode
-view-path string
set view path (default "当前路径下的views目录")
```
执行命令
```
flow-example --app-name --address
--view-path $GOPATH/src/github.com/funswe/flow-example --log-path --logger-level
```
# 查看效果
- 浏览器访问http://<设置的address>/json
- 浏览器访问http://<设置的address>/render
- 浏览器访问http://<设置的address>/parse/flow-example?age=30