Coder Social home page Coder Social logo

yahuijiang / go_static Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johnlui/go_static

0.0 3.0 0.0 191 KB

A simple static tool for any single page with golang, also can be used in Emlog platform for the whole website. 使用Go语言编写的跨平台的网站首页静态化工具[也适用于emlog整站(首页+文章+页面)静态化]

License: Other

Go 100.00%

go_static's Introduction

go_static

###功能###

  1. 新闻博客类非数据交互网站通用首页静态化
  2. emlog博客系统文章页静态化
  3. 使用Go语言编写,跨平台

###条件###

  1. 需要有服务器管理权限,因为要编译、运行软件
  2. 需要Go语言编译环境,请去The Go Programming Language 下载

###使用方法###

  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最大值

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.