Posts

Showing posts with the label Go

New blog domain: kula.blog

It's still work in progress but new posts will be published on  https://kula.blog/ Thanks to 11ty base blog RSS is working from the start so it should be easy to add to your reader if you still use any :) If now then I hope you can sign up to the newsletter where I'll be publishing new posts and interesting articles to it from time to time. Please use  kula.blog  from now on.

Book Review: An Introduction to Programming in Go by Caleb Doxsey

Image
Short but pretty nice book about Go language. It was recommended to me and I am really glad that I read it. It is much easier to follow than GoTour and in my opinion sets up much friendlier learning curve. Book is available for free online  and on Amazon. I have learned most in part 9 about Structs and Interfaces. Really interesting is chapter 13 about the Core Packages so I can recommend those two if you already know the basics of the language but want to see more practical usage. Rating 8/10 (just keep in mind that it is an introductory book)

Go-Lang First Steps

Image
Installation Easy tutorial:  https://golang.org/doc/install Official How to:  Tutorial:  https://golang.org/doc/code.html Available also as a video: Github I have noticed that  TJ Holowaychuk  is creating a lot of projects with "go-" prefix. I thought it might be a good idea as well. The thing is you can't use such packages out of the box. Default import looks like: import "github.com/tj/go-debug" But you can't do: go- debug.debug ( "sending mail" ) In Go, last folder name and package are the same things so you cannot even write: package go- debug If it is so hard, why to do it? For me, most important thing is to easily see which projects are written in Go. You cannot use this project in the folder with the same name as the repository name. So how are others dealing with it? How to use projects on Github with "go" prefix? 1. Create a directory in the repository to be used as the namespace nam...