Golang Write service-side program, as a file upload and download server. Cooperate with HTML5 to use Web page as user page

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Golang Write service-side program, as a file upload and download server. Cooperate with HTML5 to use Web page as user page

1. Entire Engineering structure


Where: Mainup.go is listening to the local waiting for user access to upload the service-side program, Mainup.exe is the corresponding executable file.

Maindown.go is listening locally waiting for the developer to access the application to see all uploaded files and download the deleted server program.

Indexup.html is a Web page presented to the user to upload files, indexdown.html is to view all uploaded files, to delete the downloaded service-side program.

The static folder contains the referenced library

The Files folder holds uploaded documents.


2. Source code


Both the Mainup.go and Maindown.go files refer to the gin package, and I've downloaded it locally from GitHub. After downloading the source code, the user remembers setting up the download gin package.


GitHub has not been passed on, the entire project here to save the Baidu Cloud disk. The link address is as follows:

Http://pan.baidu.com/s/1jIRio4Y



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.