gin_sample

command module
v0.0.0-...-93b2256 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2016 License: MIT Imports: 1 Imported by: 0

README

#Gin Sample

##测试

./run.sh

##打包

./build.sh

##Glide依赖管理 https://github.com/Masterminds/glide

##Bindata https://github.com/olebedev/staticbin

##Bindata打包 https://github.com/jteeuwen/go-bindata

go-bindata -ignore=\\.DS_Store -pkg="assets" -o src/assets/assets.go assets/...
go-bindata -ignore=\\.DS_Store -pkg="templates" -o src/templates/templates.go templates/...

##交叉编译

cd $GOROOT/src
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ./make.bash
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go install gin_sample

##依赖 ###Gin框架

github.com/gin-gonic/gin
github.com/gin-gonic/gin/render
github.com/gin-gonic/contrib/sessions
github.com/gin-gonic/contrib/cache

###ORM

github.com/jinzhu/gorm

###模板

github.com/flosch/pongo2
github.com/robvdl/pongo2gin

###其他

github.com/olebedev/staticbin

##框架功能 ###配置 conf

###缓存 查询缓存 SQL解析缓存

  • Memcached
  • Memory

###Session

  • Cookie
  • Redis

###FLASH

###权限 Auth AuthApi

###模型 ####DB 多连接及切换

####ORM CURD 关联 事务 form绑定 自动验证 分页

  • gorm

###模板 模板布局 公共参数 模板替换

  • PONGO2

###日志 日志分级

  • 调试日志

###安全 SQL注入 XSS 表单令牌 验证码

###部署 模块部署 域名部署

###多语言

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