you did an awesome job, I am a complete beginner, just started coding 2 months ago but still I am able to grasp all these topics that seemed very difficult in the beginning, I will practise it again so that i am able to understand it better. Thank you.
I came across this as a dumb error but after watching the password hiding process I have a doubt... so in the struct declaration one of my variable name (tags) had the first letter in lower case so it would not get exported by json and be displayed in fmt... so instead of hiding it cant we just make the password field's first letter small?
thank you for this amazing course but i have a little question about the output of the marshal json i get a byte slice as an output until i change it to string(finalJson) why
Haanji, Chai aur Code ki audience hai hum, par golang aapse seekhne yahan aaye hai! Kabhi Chai aur Code par bhi charcha kare Golang par, maza aayega.🙂🙂🙂
that's because sir is using %s in the Print'f' function while were using Print'ln' so we have to surround it by the string function the %s basically does the same in print'f'
type course struct { Name string `json:"name"` Price int Platform string `json:"website"` Password string `json:"-"` Tags []string `json:"tags,omitempty"` } in this code i used small t for tags and it was not being displayed because it was not exported. it should be cap only.
you did an awesome job, I am a complete beginner, just started coding 2 months ago but still I am able to grasp all these topics that seemed very difficult in the beginning, I will practise it again so that i am able to understand it better.
Thank you.
Thank you so much sir! Greetings from Turkey♥
I came across this as a dumb error but after watching the password hiding process I have a doubt... so in the struct declaration one of my variable name (tags) had the first letter in lower case so it would not get exported by json and be displayed in fmt... so instead of hiding it cant we just make the password field's first letter small?
Super simple as always 🌟❤️
thank you for this amazing course but i have a little question about the output of the marshal json i get a byte slice as an output until i change it to string(finalJson) why
Brutal! JSON from Go :D
Nice and useful tutorial !
Thanks!
Great video 👍
Great video as always. Thank you
Thank you for this very useful video!
sir I am trying to do this but getting buffer instead of json
Thank you so much. Great video!
Love you man❤
I am getting null values while printing the JSON values. did the same as above.
getting same error did you find any sol?
I got the solution you have to define the struct fields like course with capital letter Course for export other it will stay as private field
@@rahulbhandari1644 Yes, Thanks.
Haanji, Chai aur Code ki audience hai hum, par golang aapse seekhne yahan aaye hai!
Kabhi Chai aur Code par bhi charcha kare Golang par, maza aayega.🙂🙂🙂
can you make a video on mssql TVP in golang?
I still don't get it why people like this language! This is so confusing way to handle json compared to other languages
thankyou sir
is anyone else getting bytecode of the json data and has to use the string() method to get the real json data?
that's because sir is using %s in the Print'f' function while were using Print'ln' so we have to surround it by the string function the %s basically does the same in print'f'
@@mohirashaikh6432 yeah i also got it thanks tho
sir chai aur code me golang tutorial chayihe
type course struct {
Name string `json:"name"`
Price int
Platform string `json:"website"`
Password string `json:"-"`
Tags []string `json:"tags,omitempty"`
}
in this code i used small t for tags and it was not being displayed because it was not exported. it should be cap only.
👍
hi