File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,10 @@ something 5 hello
84
84
85
85
# [ ] ( #header-1 ) go routines
86
86
87
- I think them as threads, fork etc.
87
+ I think them as threads (not fork).
88
+
89
+ just add 'go' before any function and it will start running in own thread.
90
+ Also means that main has to wait for threads to end/exit.
88
91
89
92
Here main() waits for childs to exit and first foo() finnishes last.
90
93
@@ -207,6 +210,9 @@ I hope standard library has sceptical members what to put there or were are in t
207
210
So I learned ** my lesson** , I have to think what members really need be private or use interface in an github project.
208
211
If I think it is any use to anybody other than just cut and paste code.
209
212
213
+ # [ ] ( #header-2 ) interfaces
214
+
215
+ after googling a lot my concusion is that they are like class in C++ with all functions as empty virtuals.
210
216
211
217
212
218
You can’t perform that action at this time.
0 commit comments