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.
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
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.
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.
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.