GoLang – Availing on Linux

Background Let us avail the go runtime on our system.   Lineage OS Microsoft - MS Windows Link   Linux Though my primary OS is MS Windows, I play around a bit with Linux, as well. Options There are a couple of options for availing go on a Linux system. The options include:- rpm Repositories … Continue reading GoLang – Availing on Linux

Golang:- Error – “too many arguments to return”

Background Getting fancy with Go. Will like to return a structure from a function.   Error Error - Image Error - Text Explanation Error Reads too many arguments to return have (*user.User) want () .\return.Reference.user.User.undeclared.go:49:25: getUserCurrent() used as value ¬†Explanation Function returns user.User But, it is declared as returning zero parameters     Code Original … Continue reading Golang:- Error – “too many arguments to return”

GoLang – Error – “no new variables on left side of :=”

Error Error Image Error Text Source Code Original   Revision Outline The original code read strBuffer := "Sam" The := means to declare a new variable and set its value And, so strBuffer := "Sam" reads Declare a new variable ( strBuffer ) Set the variable value to Sam Please rewrite as strBuffer = 'Sam" … Continue reading GoLang – Error – “no new variables on left side of :=”

GoLang – Sample – helloWorld

Background Let us go with a simple hellowWorld sample applications. Exercise - helloWorld Outline package package main Main Routine import List packages to import fmt Functions main Print messages using fmt.Println print "hello world" Code Run Invoke Output Output - Image Output - Text   Exercise - helloWorldPersonalize Outline package package main Main Routine import … Continue reading GoLang – Sample – helloWorld

GoLang – Availing on MS Windows

Background Yesterday found myself looking to evaluate software tools for an exercise.   GitHub Through Google Search ended up at GitHub. The specific tool is written in the Go Language.   Availing Go Language   MS Windows My primary OS is MS Windows and so this post will focus on availing Go Runtime in MS … Continue reading GoLang – Availing on MS Windows