I got a whole lot, for the lack of a better way to express it. The last thing on the terminal is: Password:, with a small image of a key after. Am I now to do something? Has the text editer been installed?
Sounds like a password prompt that expects you to log into your user account to provide permissions for your command to run. I don’t know exactly what you’re trying to do or if you’re following a particular guide, but if you’re just trying to install an editor to work with Go one simple option might be installing Visual Studio Code; it has a visual installer that might be more accessible and also contains extensions to help you work with Go: https://code.visualstudio.com/
I do not own any apple devices, so I can not check, but according to the installation instructions, it should tell you what is going on. But it probably wants to install itself into areas of your computer that are locked up against normal user write access.
Users might use a tool called sudo to gain necessary rights to write into those restricted areas. The install script is probably instrumenting this tool.
Usually you can simply use the password of the user that is currently logged in, at least if that user is allowed to elevate himself.
At the end, this has nothing to do with golang, bit with homebrew, please ask them for support.
Also, homebrew itself is not an editor, it is a package manager that shall make it easier to install software on a MacOS computer.
And make sure you have OSX 10.11, according to brew.sh, thats the minimum version required to use the install snippet you posted above. If you do not have that version of OSX but an older one, you need to do a manual install as described in https://docs.brew.sh/Installation
I’ve taken a closer look, and at least the online version of the book tells this in the “Getting started -> Text Editors” section:
To make the installation of this software easier an installer is available at the book’s website: http://www.golang-book.com/. This installer will install the Go tool suite, setup environmental variables and install a text editor.
The webpage itself doesn’t seem to have such an “installer” available, but only just another “installing stuff” section, where they in fact do only provide the homebrew install command line snippet without further instructions.
I’d drop that book after this experience, as it seems to be unable to hold its own promises.
But maybe the remaining pages are better, just try a random editor of your choice with a golang plugin. Atom, VScode, IntelliJs Go IDE, Emacs, there are many. Just pick one, preferably that one that you use already for your daily bread and butter.
I’m incredibly a newby having no background in programming at all. I’m going through some online courses with Todd McCleod. Yes, I am just beginning to use the Go playground. I have no idea how to use the bash shell. Don’t worry. I’m determined to get there
Definitely learn some bash commands and a find a text editor you like! It’s a very good investment of time. I got my first account on a Unix system in 1981, and the first things I learned were the shell and the (only) text editor on the system. I am still using them today as my main tools (in Free Software, enhanced versions, bash and vim).
There are many bash tutorials online. As for your text editor, there are many popular ones.
Here’s a link to the 2018 Stack Overflow Developer Survey, with their idea of what editors and development environments are popular with programmers:
Or you can search for something like “best programming OR code OR text editor” to get lists of suggestions. I generally prefer things that are simple and free (both in price and in liberty), but there are some commercial products that are more full featured and have become quite popular.