To be able to debug Go programs in Atom, make sure the Go IDE is installed. See Install the Go IDE at Install and set up Go To start debugging select the Debugger tab in the upper right corner of Atom If you get the error message: The debugger is not attached, and when you click Attach debugger …
Author Archives: Laszlo Pinter
Using Go packages
To use a public package in your Go application add the line to the top of your program to import the package import “github.com/aws/aws-sdk-go/service/s3″ If this is the first time you are using the package, the error message appears in the output window of Atom when you save the file cannot find package “github.com/aws/aws-sdk-go/service/s3” in …
Your first Go application
Programming in GO is quick and fun. You can write a working, compiled application with a few lines of code. In this example, we will use Visual Studio Code to edit the source code, and we have already configured it to start from the command line with the “code” command. Write your first Go application Create …
Set directory access in Windows
When you use SetAccessRule() to set access rights on a Windows directory, the user who will get the permission has to be a member of the Administrators group. If the user is not a member of the Administrators group PowerShell shows the error message Exception calling “SetAccessRule” with “1” argument(s): “Some or all identity references could not be …
Go language notes
Differences between Go and the “C” type languages Variable declaration int i; // C#var i int = 5 // Goi := 5 // Go Function declaration private int AddNumbers (int a, int b) {…} // C#func addNumbers(a int, b int) int {…} // Go Loops for for (int i = 0; i < 5; i++) …
Install and set up Go
Set up the Go development environment Install Git For Mac see Install Git on Macintosh For Windows see Install Git on Windows Install the Go Programming Language Download the Go distribution from The Go Programming Language page and follow the installation instructions. Test the Go installation Open a new terminal window, so the new PATH settings are imported, …
Install Git on Macintosh
Navigate to https://git-scm.com/download/mac to download Git for the Macintosh. The page automatically downloads the installer for the operating system you use. This app is not trusted by Apple, so to install it Control-click (right-click) the downloaded file and select Open Click the Open button to confirm the action Configure Git To configure Git see Git configuration.
How to duplicate a Windows server that is attached to the Windows Domain
When a Windows server is attached to a Domain only one instance of it can run at a time. To be able to duplicate the server and start a second instance of it Create an image of the server Remote into the server Make sure there is a local administrator account that you can log …
Continue reading “How to duplicate a Windows server that is attached to the Windows Domain”
Unable to insert the virtual optical disk in an Ubuntu virtual machine
When you try to install a new version of the VirtualBox Guest Addition on an Ubuntu virtual machine you may get the error message Unable to insert the virtual optical disk C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the machine Ubuntu 64. Could not mount the media/drive ‘C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso’ (VERR_PDM_MEDIA_LOCKED). Result Code: E_FAIL (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed} …
Continue reading “Unable to insert the virtual optical disk in an Ubuntu virtual machine”
Raw-mode is unavailable courtesy of Hyper-V error in VirtualBox
For VirtualBox to be able to start virtual machines, Hyper-V has to be turned off in Windows 10. If you get the error message when you try to launch a virtual machine in VirtualBox Raw-mode is unavailable courtesy of Hyper-V Check the Hyper-V setting Open a command prompt as an administrator, Execute the command: bcdedit …
Continue reading “Raw-mode is unavailable courtesy of Hyper-V error in VirtualBox”