Structs – Go Lang Programming Tutorial: Part 18

In this video, we cover structs in the Go programming language.

The “syllabus” for this series of videos is inspired by the wonderful website compiled by Mark McGranaghan:
https://gobyexample.com/

The software written in this video is available at:
https://github.com/vprusso/youtube_tutorials/blob/master/go/18_structs.go

Comments

Randix Lai says:

I don’t understand. In your last tutorial you say the a pointer points to the memory address, emp_ptr := &emp should represent a memory address, shouldn’t it? So why does fmt.Println(“emp_ptr.firstn_name”) print the value rather than fmt.Println(“*emp_ptr.firstn_name”) ?

 Write a comment

*

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!