Go (1.15.6 or later) Installation and Setup in Windows 10 (Fresh Install)

Official Go download page, this link gives you more option to choose from OS platform and OS architecture x86-64 build. And you can use the go build command parameter to building a binary for an application that can run for CPU of x86 (386) and x86-64. https://golang.org/dl/ Install Open the MSI file you downloaded and… Continue reading Go (1.15.6 or later) Installation and Setup in Windows 10 (Fresh Install)

Range Over Slice and Map

https://repl.it/join/gdzplzna-shankuo  go build ./main1 -> shan kuo2 -> Hoi Leng3 -> Choi Yan4 -> Evelyn Chan

Go Built-in Unit Testing

Naming conventions ( prefix with underscore) suffix with underscore with the filename. For example, the hello.go is the source file then hello.go with test package will have the filename hello_test.go tells the go test command that this file contains test functions. hello_test.go Testing package Importing the testing package is a must to be included along with other imported… Continue reading Go Built-in Unit Testing

Published
Categorized as Go, Testing