-
Archives
- August 2023
- January 2023
- December 2022
- November 2022
- October 2022
- April 2022
- January 2022
- December 2021
- November 2021
- February 2021
- January 2021
- December 2020
- September 2020
- August 2020
- July 2020
- June 2020
- January 2020
- December 2019
- September 2019
- July 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- August 2018
- June 2018
- February 2018
- January 2018
- October 2017
- September 2017
- August 2017
- April 2017
- March 2017
- January 2017
- November 2016
- October 2016
- September 2016
- May 2016
- February 2016
- January 2016
- December 2015
- August 2015
- July 2015
- April 2015
- February 2015
- December 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- March 2014
- October 2013
- June 2013
- May 2013
- April 2013
- July 2012
- June 2012
- April 2012
- January 2012
- December 2011
- November 2011
- October 2011
- June 2011
- May 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- August 2010
- June 2010
- May 2010
- April 2010
- January 2010
- October 2009
- September 2009
- July 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
-
Meta
Category Archives: golang
GO lang installation on FreeBSD
Working mostly on Windows 11 I found that cross compilation for FreeBSD does not work. I’ve got error message go: unsupported GOOS/GOARCH pair FreeBSD/AMD64 Good solution is actually install it on FreeBSD itself. So here are commands from FreeBSD terminal.
Go: False positive virus detection
Recently to my surprise antivirus software detected virus in my freshly build golang program. Doing research I found interesting article from Melle Boudewijns. So I created simple golang program hello_flags.go: Then I compiled this source file with flags and execute … Continue reading
Posted in golang, workday
Leave a comment
Go webserver on Apache
Go language allows create very easily webserver. Let’s consider a full working example of a simple web server at https://golang.org/doc/articles/wiki/ implemented in the file web8080.go: Code above could be one of the several web application implemented in go language. Each … Continue reading
Brief go lang programs
Here is list of brief go lang programs
Posted in golang, workday
Leave a comment
Hello Website on GKE Cluster
Let’s explore, how deploy web application “Hello Website” written in go language at Google Kubernetes Engine Cluster. Source code for “Hello Website” in the file helloweb.go Source code for dockerfile Steps: At https://console.cloud.google.com/apis/library search for Kubernetes (k8s) and then enable … Continue reading
Short decimal ASCII characters table
Seven bit characters ASCII table is with us long time. Once a while we need to know value of ASCII character, mostly out of the alphabet characters. For example on Windows it’s possible to type any character by pressing <ALT> … Continue reading
go: Marshal and Unmarshal json
Here is an example playing with json, see https://play.golang.org/p/fHA1im6vPIG
Posted in golang, workday
Leave a comment
go: Legacy character encoding conversion to UTF-8
Go language is using UTF-8 encoding, but sometimes text files are encoded in some other encoding, like Windows-1250. Here is example, how it could be done https://play.golang.org/p/K3JAeM4nCVD Decoding table used in this program was developed from page CP1250.TXT at ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/ … Continue reading
Posted in golang, workday
Leave a comment
go: Enumeration
There is no enumeration in Golang, but here is an example, which could be good start for any project, which needs to utilize enumeration. See https://play.golang.org/p/pD29UI37iq1
Posted in golang, workday
Leave a comment
go: Three dots/ellipses notation and variadic function; arrays vs slices
Go program example below explores arrays, slices and three dots notation. Arrays and slices are similar, arrays have static usage, slices are dynamic. Arrays are type values, fixed length sentences of items of the same type. Slices are reference types. … Continue reading
Posted in golang, workday
Leave a comment