Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnlui/go_static
A simple static tool for any single page with golang, also can be used in Emlog platform for the whole website. 使用Go语言编写的跨平台的网站首页静态化工具[也适用于emlog整站(首页+文章+页面)静态化]
https://github.com/johnlui/go_static
Last synced: 4 days ago
JSON representation
A simple static tool for any single page with golang, also can be used in Emlog platform for the whole website. 使用Go语言编写的跨平台的网站首页静态化工具[也适用于emlog整站(首页+文章+页面)静态化]
- Host: GitHub
- URL: https://github.com/johnlui/go_static
- Owner: johnlui
- License: other
- Created: 2013-11-30T12:21:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-11T16:16:53.000Z (about 10 years ago)
- Last Synced: 2023-08-12T23:50:38.840Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 187 KB
- Stars: 25
- Watchers: 7
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
go_static
====================
###功能###
1. 新闻博客类非数据交互网站通用首页静态化
2. emlog博客系统文章页静态化
3. 使用Go语言编写,跨平台###条件###
1. 需要有服务器管理权限,因为要编译、运行软件
2. 需要Go语言编译环境,请去[The Go Programming Language](http://golang.org/) 下载###使用方法###
1. 两个文件单独编译:`
go build common_static_homepage.go
`
`
go build emlog_static_articles
`
2. common_static_homepage `通用首页`静态化 使用方法为:
`
./common_static_homepage -url=http://example.com/index.php -t=30
`
t 为间隔时间,单位是秒3. emlog_static_articles `emlog文章页`静态化 使用方法为:
`
./emlog_static_articles -url=http://example.com/index.php -c=10 -n=100
`
c 为并发数,n 为总文章数,即文章id最大值