GolangCI-Lint
GolangCI-Lint is a linters aggregator. It’s fast: on average 5 times faster than gometalinter. It’s easy to integrate and use, has nice output and has a minimum number of false positives. It supports go modules. …
GolangCI-Lint is a linters aggregator. It’s fast: on average 5 times faster than gometalinter. It’s easy to integrate and use, has nice output and has a minimum number of false positives. It supports go modules. …
Našel jsem hezký „plán“ který dost podorbně mapuje cestu jak se stát Go vývojářem…
Pokud opravdu v dynamciky typovaném jazyku potřebujete znát typ konkrétní proměnné: typeOf(v) function typeOf( obj ) { return {} .toString .call( obj ) .split( ‚ ‚ )[ 1 ] .slice( …
Před pár dny byl oficiálně uvolněn MongoDB driver pro Go. Vyšel ve verzi 1.0.0 a dle autorů je Ready For Production Detail zde. Asi nejzásadnější noviky: change streams for fully-reactive, …
Pokud vás trápí velikost binárky vaší Go aplikace, a rádi byste věděli co vše v ní je, pak zkuste goweight. package main import „fmt“ func main() { fmt.Println(„hello, World!“) }
Měřit čas provádění nějaké části bez debugování jsem popisoval už jednou tady, nicméně lze dělat třeba i takto: package main import ( „fmt“ „time“ ) func timeTrack(msg string, start time.Time) …