Hey,
I am pretty new to golang but not coding. I was trying to create a modular golang program (main.go) that will read in all the other go files in a template format like this:
programA.go:
programA_funcA{
do this}
programA_funcB{
do this}
The goal is to have be able to drop any file named programX.go file into the project folder following the same function naming scheme above and have my main.go read in all the programX.go files and run through the template commands
So if I had programA.go and programB.go, it would be something like
foreach programX.go{
$program.funcA
$program.funcB
}
output:
programA.funcA
programA.funcB
programB.funcA
programB.funcB
Is something like this possible in go? All advice would be helpful!