[2019-12-14]
2 MIN
Middleware is a function which wrap http.Handler to do pre or post processing of the request. Chain of middleware is popular pattern in handling http requests in...
[2019-01-10]
1 MIN
This is next level of dealing with certificates. Great job by Matt Hold and open source community on Certmagic module. Read his twitter thread on the subject.
[2017-12-18]
1 MIN
Hi guys, this is day 18 out of 100 days of code. To get md5 sum of a file you crypto/md5 library and io/ioutil for reading files. Thanks!
[2017-12-11]
2 MIN
Hi guys, this is day 17 out of 100 days of code in go lang. Today I have played with files, sorting, bytes and strings. The goal was to create a kind of indexed...
[2017-12-10]
1 MIN
Hi guys, this is day 16 out of 100 days of code. With help of http and ioutil packages file download and storage is quite easy task. In the example I am using...
[2017-12-09]
1 MIN
Hi guys, this is day 15 out of 100 days of go land coding. I continue github subject and today it is github issue reader. Example demonstrate how API results...
[2017-12-05]
2 MIN
Hi guys, today is day 14 out of 100 days of golang coding. This time I was playing with github issues api and made small script which create new issues in given...
[2017-12-04]
1 MIN
Hi guys, today is day 13 out of 100 days of code in go! This time it is example of fetching issues from github and categorizing by created date.
[2017-12-03]
1 MIN
Hi guys, this is day 12 out of 100 days of code. I didn't post for a while, because I did a small break for hackaton, but now I am back on track.
[2017-11-27]
1 MIN
Hi guys, this is day 11 out of 100 days of go coding. This time it is very short demo of go maps and simple sort by map values. Note that the example below will...
[2017-11-26]
3 MIN
Hi, this is day 9 out of 100 days of code in go. Today I am playing with struct type. Struct is a go way to define custom types. Use it when standard types...
[2017-11-24]
2 MIN
This is day 10 out of 100 Days of golang coding! Idea for today is to build transparent http proxy with ability to filter traffic. As for a filter I will use...
[2017-11-22]
1 MIN
Hi guys, today is day 8 out of 100 days of code. The task for today is to count words frequency reading data from stdin. Input is scanned using bufio Scanner...
[2017-11-21]
2 MIN
This is day 7 out of 100 days of golang coding. By requests of my friends this post is about packages, files and imports. Packages in go is the same as modules...
[2017-11-17]
2 MIN
Hi guys, this is day 6 out 100 days of code on go lang. Following code implement recursive fetching of internal links on given web page. What I want to do next...
[2017-11-16]
1 MIN
Hi guys, this is day 5 out of 100 days of code! Today I have coded html href links parser. This is part of web crawler project about which I will post in...
[2017-11-15]
1 MIN
This is day 4 out of 100 days of code. Two code snippets today. First is very simple go channel. It get current system time and post it to a channel then on...
[2017-11-14]
2 MIN
This is day 3 out of 100 days of code in go lang. This code snippet does recursive search through directory tree. One improvement which can be made is to replace...
[2017-11-13]
1 MIN
Hi guys, here is day 2 of 100 days of code. This time it is very simple implementation of grep tool. What it does it search string in specific directory and...
[2017-11-12]
2 MIN
Hi all, this is day 1 of 100 days I am coding one go program a day. Wish me good luck! In this example I will show how to parse command line arguments with flag...