Skip to content

xiaoaxe/xiao-yuedu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xiao-yuedu

构建一个下载电子书的网站

feature

  • item & list
  • search
  • category
  • download
  • hot
  • save
  • tag
  • css分页和样式

目前支持的方法列表

  1. book
  2. page
  3. search
  4. download
  5. hot

引用的类库

  1. web框架:github.com/gin-gonic/gin
  2. sqlite3存储:github.com/mattn/go-sqlite3
  3. yaml配置解析:github.com/go-yaml/yaml
  4. 数据库orm:github.com/jinzhu/gorm
  5. 全局搜索:github.com/huichen/wukong

规范

  1. 代码尽量使用全称呼不使用缩写,书名命名只有英文中文和下划线

依赖关系图

  • depth
    • download: go get github.com/KyleBanks/depth/cmd/depth
    • run: depth github.com/githubao/xiao-yuedu > dep.txt
  • godepgraph
    • download: go get github.com/kisielk/godepgraph
    • run: godepgraph -s github.com/githubao/xiao-yuedu > dep.dot
    • run: dot dep.dot -T png -o dep.png

代码质量检查

  • gometalinter
    • download: go get github.com/alecthomas/gometalinter
    • install: gometalinter --install --update
    • run: gometalinter ./... -e 'should have comment' -e 'should be of the form' -e 'return value not checked' -e 'Errors unhandled' --skip vendor --deadline 600s > warn.txt
  • golangci-lint

About

构建一个下载电子书的网站

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published