Program modularization method and device, equipment, storage medium and computer program product

By generating dynamic libraries and determining the target function name, the problem of low independence and flexibility in Go program modularization is solved, enabling cross-platform Go program modularization and improving program independence and flexibility.

CN122173129APending Publication Date: 2026-06-09BEIJING HONGTENG INTELLIGENT TECH CO LTD
0 Cites 0 Cited by

Patent Information

Application Number
CN202411794138.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

In existing Go language modular programming, the Go plugin mechanism requires programs to use the same version of toolchain, build tags, and environment variables, resulting in low independence and flexibility.

Method used

Based on the Go code to be modularized and the programming language type, a dynamic library is generated. By checking whether the target function name exists in the global logic function table, the internal logic function of the target is determined and executed, thus achieving cross-platform modularization of Go programs.

Benefits of technology

It achieves the independence and flexibility of Go language program modularity, avoids the risk of program crashes due to version differences, and is suitable for large-scale Go program systems developed collaboratively by distributed teams.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention discloses a program modularization method, device and equipment, a storage medium and a computer program product, and relates to the technical field of computers.The method comprises the steps that a code dynamic library is generated based on a to-be-modularized Go code and a programming language type corresponding to the to-be-modularized Go code; judging whether a function name which is the same as a target function name corresponding to the logic function to be executed exists in a global logic function table in the code dynamic library or not; if yes, determining a target internal logic function based on the target function name; and calling and executing a target programming language type corresponding to the target internal logic function in the code dynamic library. By means of the technical scheme, the technical problem that in the prior art, due to the fact that Go language program modularization is achieved through a Go plug mechanism, the program is required to be compiled through specific parameters, and consequently the independence and flexibility of the program are not high is solved.
Need to check novelty before this filing date? Find Prior Art