Coder Social home page Coder Social logo

niyt's Introduction

███╗   ██╗██╗██╗   ██╗████████╗
████╗  ██║██║╚██╗ ██╔╝╚══██╔══╝
██╔██╗ ██║██║ ╚████╔╝    ██║   
██║╚██╗██║██║  ╚██╔╝     ██║   
██║ ╚████║██║   ██║      ██║   
╚═╝  ╚═══╝╚═╝   ╚═╝      ╚═╝   

GitHub release Github All Releases license

这几天在看go,所以这是个练手项目,在终端里看小说

Read the novel in your terminal - NIYT

1.How to use?

直接使用编译好的可执行文件,请在release下载对应的版本,支持mac win linux

然后直接运行即可:

# 若提示无法运行,例如在linux下
chmod a+x NIYT.linux

# 以linux为例,运行下载的NIYT.linux
./NIYT.linux

如果在win下面出现排版混乱,请参考这里来解决

或者直接运行代码(需要go环境),体验最新功能:

# 方式一
cd $GOPATH/src
git clone https://github.com/howie6879/NIYT.git
cd NIYT
go run main.go

# 若想直接在终端使用
go install

# 下面是编译语句
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ./release/NIYT.mac
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./release/NIYT.exe
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build  -o ./release/NIYT.linux

首先输入小说名称,调用第三方搜索,终端就会显示小说源,会自动判断优质源:

demo01

利用get 2进入提示响应速度最快的源,获取最新章节:

demo02

选择章节进行阅读,如阅读最新章节,get 0:

demo03

show 会以表格的形式再次展示当前源:

demo04

享受阅读吧 ,觉得不错的话给一个star

niyt's People

Contributors

easoninus avatar howie6879 avatar

Watchers

 avatar

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.