Profile cover photo
Profile photo
Kim Ilyong
Always looking for interesting Challenges in IT
Always looking for interesting Challenges in IT
About
Kim's posts

Post has attachment
Day 20 - A go http/2 server example
I was really excited when i read that support for http2 is now on golang.org ! I was thinking about checking out SPDY in go for a long time, but now HTTP/2 support moved one important step further. I think its one of the "Next big Things" on the interweb (t...

Post has attachment
Day 19 - Upgrading to Go 1.5.1 on Win7 64
I upgraded to Go 1.5.1 from 1.4.2 today 0:) Deinstall old version of Go ( doc/install ) 1:) Download https://storage.googleapis.com/golang/go1.5.1.windows-amd64.msi 2:) Get worried by this message from chrome: It says that there is something fishy with the ...

Post has attachment
Day 18 - How to get a token from a JWT server
There is a wonderful jwt middleware for ant0ine/go-json-rest to implement JWT for go: go-json-rest-middleware-jwt The problem I had is that the docu seems not to be working for curl on windows, the go code is alright, only the curl command line is a problem...

Post has attachment

Post has attachment
Day 17 - Using reflection to write into an interface slice
How to use reflection to write into a slice of unknown items inside an unknown struct:     // This is a demo to show how to convert from a normal struct // to a reflection type and back to a struct without knowing // the original one. Input is passed as an ...

Post has attachment
Day 16 - Comparison of html parsers for a webcrawler, today GoQuery
GoQuery: github.com/goquery is the king of go html parsing. After trying the two other relevant libs i can conclude: GoQuery: All you want, you can use it as a Ferrari or as a heavy load truck Scrape: Small, light and neat: Its your bicycle, it always works...

Post has attachment
Day 15 - Comparison of html scrapers, today go-html-transform
http://bitbucket.org/zaphar/go-html-transform looks very promising and powerfull, as its not only a scraping lib but is able to manipulate the DOM. I was really excited to get my hands onto it: It should be providing a simple traversing walker (like scrape ...

Post has attachment
Day 13 - Comparison of html parsers for a webcrawler, today scrape
Scrape ( github.com/yhat/scrape ) is a lightweight layer above godoc.org/golang.org/x/net/html . It makes it very easy to traverse the []* html . Node tree and provides some convenience functions such as Attr and Text . After grokking the concept its super ...

Post has attachment
Day 13 - Howto using gorp select
The dbmap . Select function in gorp can be used in two different ways. .      // Method 1: Results are returned as an array      // of interfaces ( = rows here )      rows , err := dbmap . Select ( foo , "select * from " + table . TableName )      // Method...
Wait while more posts are being loaded