Skip to content

Commit d1b6f86

Browse files
committed
a
1 parent 42091ff commit d1b6f86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ I think it is stated somewhere but I missed first that if function name starts w
5555
Basic function is simple as above.
5656
But then there is sometimes stuff just after the 'func' keyword, tutorials somehow seem to skip this .. I leared this by googling the very similar question.
5757

58-
But then function can be also 'class/struct' function.
58+
Thn functions can also be 'class/struct'-functions with out being defined in the class defination.
5959

6060
That is the stuff in brackets after 'func' is like automaticly made class/struct instance.. and used like this-pointer in C++.
61+
In this example 'y' being this-pointer.
6162

6263
```golang
6364
package main

0 commit comments

Comments
 (0)