Overview ‘os’ package of golang provides an Exit function that can be used to exit the current program with a status code. Status code zero means success Non-zero status code means an…
Tag: os
Get Hostname in Go (Golang)
Overview ‘os’ package of golang provides a Hostname function that can be used to get the hostname that is reported by the kernelBelow is the signature of this method. It returns an…