User Tools

Site Tools


programming:go

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
programming:go [2023/09/04 19:41] skipidarprogramming:go [2023/11/01 07:31] (current) – ↷ Page moved from camunda:programming:go to programming:go skipidar
Line 238: Line 238:
  
  
-== Structs ==+== Structs & pass by reference or value ==
  
 Structure to hold data in Go Lang Structure to hold data in Go Lang
 +
 +
  
  
Line 250: Line 252:
  
 // getter  // getter 
 +// attention - the assignment to struct - is derived from parenthesis after "func" keyword
 // is declared OUTSIDE of struct :( // is declared OUTSIDE of struct :(
 func (a author) fullName() string { func (a author) fullName() string {
Line 275: Line 278:
  
 </sxh> </sxh>
 +
 +''*address'' - passes by reference
 +
 +Explains why to pass 
 +
 +{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/lzCAcBclf3.png?529x226}}
  
  
programming/go.1693856511.txt.gz · Last modified: by skipidar