Тёмный

Structs in golang 

Hitesh Choudhary
Подписаться 947 тыс.
Просмотров 40 тыс.
50% 1

Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdo...
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit...

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@rikunjsindhwad7597
@rikunjsindhwad7597 3 года назад
possible for you to brief your video editing and recording process, I like it as it neat clear and clean, thanks in advance
@SriHarshaChilakapati
@SriHarshaChilakapati 3 года назад
Name some characters who grow younger over time: 1) Aunt May in Spider Man movies 2) Hitesh Choudhary (from 19 and half to 16)
@davida.7586
@davida.7586 2 года назад
The usage of Printf( ... ) will confuse learners. It would be good to first show how to access Struct values by name like : hitesh.Name ... then try to use it in other methods like Printf... Thanks anyway !
@FaerdKamrat
@FaerdKamrat 2 года назад
i dont agree
@yogeshukidwe9133
@yogeshukidwe9133 3 года назад
Superb, abhi picture ka hero aya
@sahilkachhap
@sahilkachhap 3 года назад
Sir, I kept age and status starting with lowercase (age, status), still it's getting exported while printing each value, I didn't get what is the difference between naming with uppercase (Age) and lowercase (age)
@viganeshsmac1269
@viganeshsmac1269 2 года назад
Try exporting the struct to different package and access the fields inside it. You will get to know the difference :-).
@hiteshbavskar5121
@hiteshbavskar5121 2 года назад
it will give u blank values if u try to access it from out side like in lambda functions in aws
@MuhammedMuhammed-of5bd
@MuhammedMuhammed-of5bd Месяц назад
thankyou sir
@a3393962
@a3393962 Год назад
Hi, would you add interface in this tutorial?
@swapniljain3490
@swapniljain3490 3 года назад
Thank you so much😍😍
@ashishpradhan1027
@ashishpradhan1027 6 месяцев назад
In case anyone wants to automate the process of creating the folder and all. package main import ( "bufio" "fmt" "log" "os" "runtime" "strings" ) func main() { fmt.Println("Welcome to a fun project!!") fmt.Println("It allows you to create a boiler plate go folder") reader := bufio.NewReader(os.Stdin) fmt.Println("What would you like to name the folder") inputFoler, err := reader.ReadString(' ') if err != nil { fmt.Printf("Not able to get user input") } inputFoler = strings.TrimSpace(inputFoler) err = os.Mkdir(inputFoler, 0750) if err != nil { log.Fatal("Not able to create folder, cannot proceed") } err = os.WriteFile(inputFoler+"/main.go", []byte("package main func main() { }"), 0660) if err != nil { log.Fatal("Not able to create folder, cannot proceed") } err = os.WriteFile(inputFoler+"/go.mod", []byte("module "+inputFoler+" "+"go "+strings.Join(strings.Split( runtime.Version(), "go")," ")), 0660) if err != nil { log.Fatal("Not able to create folder, cannot proceed") } }
@abdulrehman8775
@abdulrehman8775 3 года назад
Wow i am number one to like your post.. Keep up the good work
@rohandas5563
@rohandas5563 3 года назад
I think struct is a more of a user defined datatype than a class replacement..is it?
@danielvega646
@danielvega646 3 месяца назад
This is like the step that Javascript wanted to do but well done: javascript tried to replace the classical paradigm of languages being based on prototypes, which provides to the language a lot of freedom being outside the 4 pillars of OOP and when you do classes on JS all is syntactic sugar for closured functions, but still its root is linked to classes since prototypes are just clones of already existent instances of classes, they just don't provide access to those classes to the developers, that's all. Golang, in change, have a real new propose: NO CLASSES. NO PROTOTYPES. JUST TYPES. The thing that is naturally part of any programming language: types! and Go just goes and augment their utilities. structs are nothing but syntactic sugar for closured functions types, and you don't even have to limit or relate your code to the OOP paradigm since there's not even inheritance, this is brilliant!
@utkarshtyagi3305
@utkarshtyagi3305 2 года назад
A question.Do we keep the first letter capital because it's a good practice that everything that needs to be publicly available should be like this or it's like a complusion without which it would not be possible to access these publicly?
@yadneshkhode3091
@yadneshkhode3091 Год назад
compulsion
@shrianshagarwal9238
@shrianshagarwal9238 Год назад
Auto-Formatting not happening for me, what can be the reason for it ?
@soniapaul288
@soniapaul288 3 года назад
OMG, 68 likes and not a single dislike😄😄😄😄😄😄
@kumarshubham919
@kumarshubham919 3 года назад
In last Saturday live, you were 19🤣
@doctype1918
@doctype1918 Год назад
this is like interface in typescript
@shaayarkasafar
@shaayarkasafar 10 месяцев назад
similar to C
@BIKRAMShaw
@BIKRAMShaw 3 года назад
Fst
@photoshopwebflippy2870
@photoshopwebflippy2870 3 года назад
Hey I run a movie app so I have a question regarding copyright what if I use an webview app to upload on playstore Which is redirected to my movie app's downloading website can I still get copyright on my app?
@Mikola1982Lt
@Mikola1982Lt Год назад
waste my time ((((
Далее
If else in golang
8:38
Просмотров 26 тыс.
This is your last video about Golang Structs!
15:57
Просмотров 6 тыс.
#kikakim
00:10
Просмотров 13 млн
When Goalkeepers Get Bored 🤯 #3
00:27
Просмотров 1,5 млн
🛑самое главное в жизни!
00:11
Просмотров 176 тыс.
Slices in golang
14:58
Просмотров 42 тыс.
The Power Of Struct Embedding And Interfaces In Golang
15:05
Golang Structs - "Classes" in Go
15:38
Просмотров 13 тыс.
Maps in golang
8:36
Просмотров 34 тыс.
Creating custom struct tags in Golang is awesome!
24:42
Why I Use Golang In 2024
9:21
Просмотров 319 тыс.
Loop break continue and goto in golang
12:20
Просмотров 25 тыс.
This Will Make Everyone Understand Golang Interfaces
21:03