GoLang Session 13 | struct type Vs interface type | Different way to instantiate the struct type

Опубликовано: 28 Сентябрь 2024
на канале: KnowledgeSharingG
100
3

GoLang Session - 13
The Go Programming Language

Custom type via struct
Custom type via interface
Different way to instantiate the struct type
struct type for fields
interface type for functions
Favor composition over inheritance
any type via empty interface{}


Download and install: https://go.dev/doc/install
The Go Programming Language Specification: https://go.dev/ref/spec
The Go Standard library or packages : https://pkg.go.dev/std

Get source code from GitHub: https://github.com/ajaynirankari/golang
====================================================

मन के भाव ? Who Am I मैं कौन हूँ:    / @feelingsofminds  

Knowledge Sharing YouTube:    / @knowledgesharingg  
Knowledge Sharing Blog: https://depthinjava.blogspot.com/

Stock Market YouTube:    / @stocksmarketupdates  
Stock Market Blog: https://stocksmarketupdates.blogspot....

LinkedIn:   / ajay-nirankari-a7537140  
Facebook:   / ajaynirankari  
Twitter:   / ajaynirankari  
GitHub: https://github.com/ajaynirankari
Telegram: https://t.me/BasicKnowledgeSharing

====================================================

Knowledge Sharing
Knowledge
Sharing
KnowledgeSharing
KnowledgeSharingG

#Knowledge Sharing
#Knowledge
#Sharing
#KnowledgeSharing
#KnowledgeSharingG