I have a common project and small projects that act as connectors in a common project.
I want to create a common project so that when developing a new connector, I do not need to change the code in the general project. Is it possible to dynamically load structures in Go, knowing only the path (by placing this path in the file in the general project and while loading this structure) of the structure and its folders?
connector1 connector1.go /util /domain connectorN connectorN.go /domain commonProject main.go config.ini
Config.ini structure
Conector name = connector1 path = ..../connector1/connector1.go Conector name = connectorN path = ..../connectorN/connectorN.go
I know that this can be done in Java with this code, but I'm trying to do it in Go. Any ideas?
Class.forName(String)
or
ClassLoader.loadClass(String):
source share