Giter VIP home page Giter VIP logo

dtext-go's Introduction

English Version

dtext

dtext 是一款在线文本同步软件,dtext-go是由go语言编写的版本;您无需借助微信、QQ等聊天软件,使用任何可以上网的设备,即可同步文本信息。

dtext会架设一个http网站,当网站运行起来后,任何可以访问这个网站的人,仅需访问/pageName/w 并编辑网页的内容, 都可以对几乎任何页面做修改(仅读页面除外,默认包括index 和 help页面)并生效,当然,pageName你可以自由定义。 当您以/pageName的形式访问的时候,默认为仅读模式,防止您误操作页面的内容。

使用指引

# 获取项目源码
git clone https://github.com/Qnner/dtext-go.git

# 编译
go build -o dtext

# 运行
./dtext

工作原理

当您以 写 模式打开页面时,您实际上是打开了一个铺满全屏幕的输入框,js脚本会每秒钟读取文本框内容一次,并向服务器同步您的更改。

项目依赖

  • gin 号称Golang中最快的web框架
  • gorm Golang中优秀的ORM框架

许可证

本项目为作者学习Golang创作,项目遵从 MIT 协议

dtext-go's People

Contributors

qnner avatar

Stargazers

 avatar  avatar XLB avatar

Watchers

 avatar

Forkers

alice1530

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.