Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A brief introduction of Go plug-in system Plugin

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces "brief introduction of Go plug-in system Plugin". In daily operation, I believe many people have doubts about the brief introduction of Go plug-in system Plugin. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "brief introduction of Go plug-in system Plugin". Next, please follow the editor to study!

Why do you need Go Plugin

The reasons are as follows:

Pluggable plug-ins: the program can install plug-ins at any time or uninstall them to get more runtime customization capabilities.

Dynamically loadable runtime modules: whenever a plug-in is installed, you naturally need a module that can decide which plug-in to run.

Plug-ins and modules can be developed independently: main systems and subplug-ins, which may be developed and provided by different teams, but also more valuable.

Why not be needed?

But why is it that Go Plugin has not been used on a large scale for 4 years, even for many business developers, or is not even aware of it?

To investigate the reason, I personally think that the wide application of a thing should at least meet the following three major points:

Cardinality: more scenes are needed.

Hands-on: convenient and easy to use.

Quality: no big problem.

For those who are more troubled, the three major points of Go Plugin are all short of some heat, which leads to the lack of large-scale application of this function.

As if to apply Go Plugin, there are such as the following constraints:

Environmental issues: do not support Windows and so on (no plan, # 19282). MacOS has some problems. At first, it only supports Linux, and others are gradually increased later.

Go version problem: the Plugin build environment and the dependent versions of third-party packages need to be consistent.

Feature problem: lack of Plugin features, such as no plug-in shutdown, no new plan support (# 20461).

Currently, Go Plugin is not a priority for Go Team, and there are problems with support in Windows/Mac. There is a problem with GOPATH, as well as with different GO versions. It is also recommended that if you want plug-ins, please take the slower grpc route, because they are valid plug-ins.

At this point, the study of "A brief introduction to the Go plug-in system Plugin" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report