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
Amazon Auto Links: No products found.
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”) ?