How quickly is work imported?

If I have function, struct, enumor classin another file / subfolder

How do I import it for use in another file? I am a javascript developer, and I decided to pick it up quickly, so I'm still trying to wrap my head around this.

NOTE. I do not create ios / macOS applications. I am trying to create linux cli software. enter image description here

enter image description here

+4
source share
2 answers

If this is the same goal - you are not importing anything, you can use it without problems.

If you have separate goals (for example, the Framework for the library), you must do import ModuleNameto access this code.

internal, , . , private fileprivate

0

"var main = Main()" , , main.getArgs // , struct

0

Source: https://habr.com/ru/post/1676173/


All Articles