Hey Todd,
Awesome course, One of the best teachers out there, keep up the good work! :D:D
New section
Hi Todd,
HmmmâŚIâll like to get free access. Your youtube tutorials have been really useful tho. Thanks
Depending upon your economic means - please feel free to share:
Discounted access:
Free Access:
Just started watching your training videos and I have to say it is not only functionally appropriate, but Iâm getting a hoot listening to your anecdotes - usually, since Iâm an old curmudgeon, I canât stand such meanderings, however I find your embellishments amusing. Thanks for sharing your insights - both the educational as well as the the personal.
V/r,
-tc
Hello Todd,
Gone through more then half your videos on Udemy and it has been great so far =) my goal is to leave QA Testing where I currently work and start doing back end, we are using Go for all our Backend, clever guys over here =)
Awesome. Iâm glad you like it. Thank you for reaching out. I appreciate hearing that my work is beneficial to others!
@toddmcleod Iâve seen it.I like it I like you man.
Thank you (@|â)
THANK YOU!
Iâm taking this class now, but I was off to a slow start due to life. Back in the saddle now. Great course! Itâs more fun to learn from a real person than a snooty stuffed shirt. Thanks for that too.
Hi Todd, love your channel it is a great source for learning go. Iâm student and just started to learn go and how to develop microservices with go. I really want to learn from your course on udemy and youâve posted this link to course with a coupon but it seems that the coupon has expirated and 35 dollars is still cheap and thank you for that but I cant afford to spend this amount on course right now. You also mentioned the free access Is that possible ? Or if the discount to 9 dollars is still also a option. If not still thank you for the rest of the content you are publishing.
Try the code âformyfriendâ
If that doesnât work, let me know and I will find you one that does!
Where are you a student? What are you learning? What year are you?
I ask because I am looking for people to help with a business I am starting.
Iâm from Slovakia studying computer science second year. I started with c and java and then I heard about golang and got really into it. Im specializing on a backend and web technologies. Thanks a lot for the coupon and the course because Im really excited to learn this language. Thank you for your work !
Hi Todd,
Can you help with this code. I dont know how it works
slice := []int{1,2}
for _, v := range vals{
if v == r.Form.Get("gender"){
return true
}
}
For handling radio button. I could not find it on any of your tutorials on youtube.
Apologies if this means intruding
You have a slice with two values: 1, 2.
The slice is being constructed with an composite literal:
https://golang.org/doc/effective_go.html#composite_literals
You are then ranging (looping) over those values;
1
2
In the range loop, you are checking the value against another value for
equality.
The other value is r.Form.Get(âgenderâ)
Thatâs from the Request struct type in the net/http package. One of the
fields is âFormâ
Youâll notice that the field âFormâ is of type url.Values, eg, from package
net/url the type âValuesâ which is also a struct.
So you have âRequestâ which is a struct and it has a field embedded in it
"Form" which is also a struct.
And the âFormâ struct has a field âValuesâ
If you look at the type of âValuesâ you see it is a map[string
https://godoc.org/builtin#string][]string
https://godoc.org/builtin#string
Ok, cool. You can access things with key/value access.
Also, if you look at the methods attached to âValuesâ you see you have the
method âGetâ
So r.Form.Get(âgenderâ) gets a value from an http request, eg, a client has
made a request to a server (your program) and attached some data to it -
either submitted a Form or clicked a link that had some query string
attached to it.
I hope this helps!
Yeah Todd,
I have a better grasp of the concept. Thank you very much.
One more thing, how do I get the exact value the user selected. The code tells me a data has been sent from a group of radio buttons (by returning either true or false).
How do I check which value was sent?
And just to add, thanks a lot for this help. Your videos have been my major source of learning. I hope to pay for your non-free courses. [I donât earn yet. Iâm a college student].
Thanks a lot.
How do I check which value was sent?
You can print it out to the log
log.Println
I donât get to use the output in my program, and what interface goes into the log.Println()
log.Println(r.Form.Get(âgenderâ))
Hey I hate to ask this but would it be possible to get the discounted price? Iâd really appreciate it!