Supercharge Your Innovation With Domain-Expert AI Agents!

Static resource packaging method and device in Golang language

A static resource and language technology, applied in the field of Golang language, can solve problems such as slow compilation speed and low efficiency of packaging process

Pending Publication Date: 2020-08-25
新浪技术(中国)有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the existing technology, when packaging static resources, all files are packaged sequentially at one time, and the compilation speed of all files sequentially is slow, resulting in low efficiency of the packaging process

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Static resource packaging method and device in Golang language
  • Static resource packaging method and device in Golang language
  • Static resource packaging method and device in Golang language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0022] Such as figure 1 As shown, the static resource packaging method under the Golang language of the present invention includes:

[0023] 101. Compress the folder storing static resources to obtain at least one original compressed file;

[0024] 102. Convert each original compressed file into a corresponding Golang compressed file;

[0025] 103. Compile each Golang compressed file into a corresponding intermediate state file based on the multi-threaded wo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of Golang language, in particular to a static resource packaging method and device under the Golang language, and the method comprises the steps: compressing a folder storing static resources, and obtaining at least one original compressed file; converting each original compressed file into a corresponding Golang compressed file; based on a multi-threadworking mode, compiling each Golang compressed file into a corresponding intermediate state file; and converting each intermediate state file, and performing packaging to generate a final execution file. The static resource packaging efficiency can be improved.

Description

technical field [0001] The invention relates to the technical field of Golang language, in particular to a static resource packaging method and device in the Golang language. Background technique [0002] The executable files compiled and generated by Golang make deployment extremely convenient: only a basic system and necessary management and monitoring tools are needed on the target machine, and there is no need to worry about the dependencies of various packages and libraries required by the application, greatly reducing the burden of maintenance. [0003] However, there are often some templates in web development, such as: configuration files, css, js, pictures and other types of files, these files are called static resources. Static resources and Golang executable files are independent of each other. When deploying, additional consideration should be given to deploying these files to the production environment. If we package static resources and Golang execution files...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/30G06F8/41G06F8/71
CPCG06F8/31G06F8/41G06F8/71
Inventor 郭昭李源邱春武
Owner 新浪技术(中国)有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More