Code Monkey home page Code Monkey logo

filedownloader4win's Introduction

客户端

  • 单文件,不同的平台根据 runtime.GOOS 和 runtime.GOARCH 来判断
  • 打开时,通过 http 协议获取服务器上的文件列表
  • 以较好的格式展现给用户,用户可以使用上下键来选中
  • 用户选中按下回车键后,通过 http 从服务器下载相应的压缩包
  • 本地建立相同的文件名,并通过 io.Copy 将从服务器下载的压缩包内容复制给本地文件
  • 解压本地文件到特定的目录
  • 生产 exe 快捷方式到桌面
  • 打开配置文件

服务端

  • 提供两个服务
  • 提取程序列表
  • 程序下载服务,并记录日志(ip,时间,程序)

  • go get -u github.com/manifoldco/promptui
  • go get -u github.com/chzyer/readline

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.