If you are wondering about to handle a POST request Then you might also have a second question about how to handle request payload right I mean it s crucial every application to parse request body whe
If you are done with the hello world example Let s start with adding few routes to our application Again this is super super basic routing only for beginners to show you how you can create http path f
If you already familiar with basic go syntax and wondering how can you write a web app in golang then you ve come to the right place In this post we will see how we can get started with writing our fi
Doing a lot of randomize practice today Let s look into another example to build World s simplest letter or word shuffler in go programming Method Shuffle Words This function uses strings Fields to sp
If not super often some time we definitely need to randomize an array or slice Here s an example implementation to shuffle our array in go programming Our Shuffle Slice Method Using rand shuffle to ra
We all need to generate random strings random strong password One time password OTP Pass Code Random user ID Order Code Invoice Code etc So here I have an example go implementation for generating rand
In javascript we have typeof operator returns a string indicating the type of the variable In golang we can write an equivalent function to achieve similar situation by using reflect package In the gi
This is kinda a beginner question that how we can join multiple arrays or slices in any programming language In golang slices are more popular options when it comes to merge them due to it s dynamic n
A mutex is used to ensure exclusive access to data The standard library offers mutex locking mutual exclusion lock using sync Mutex In this post I would like to share what I ve learned about mutex loc
In this post we will see some bufio Scanner examples which comes built in from go language itself Scanner Examples In the code section i ve share 3 example usage of bufio Scanner Read word from stand
Golang default package bufio implements buffered I O which wraps io Reader or io Writer It also comes with a Scanner and it often get confused with bufio reader due to their similary In this post we w
Recent comments on go, tutorial
No comments found