does Go have a way like in C to include header files/struct declarations etc.
if they do, what are these called and I will start searching… don’t know where to start at the moment
if not, how is this dark magic done in Go
does Go have a way like in C to include header files/struct declarations etc.
if they do, what are these called and I will start searching… don’t know where to start at the moment
if not, how is this dark magic done in Go
Go doesn’t need header files. It compiles all the code together and works without the forward declarations that #include files provide. Compilers today are built assuming a lot more resources available than were available in the 70s.
thanks, I worked it out today with a bit of trial and (no) error, easily done.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.