Experiments on Go
Go is an open source programming language. To install it, you can either download it from golang.org or use brew:
brew install golang
...
go version
>> go version go1.11.2 darwin/amd64
Run you script hello.go
with:
go run hello.go
Install it in your $GOPATH/bin
with:
go install hello.go
You need to set your own $GOPATH
for it to work.
Check setup.sh
to see which path to export, Add the change to your .bashrc
to make it permanent.
Hugo is a go framework for building websites, a bit like Jekyll.
Install Hugo with brew on mac:
brew install hugo
...
hugo version
>> Hugo Static Site Generator v0.51
And then create your first website with:
hugo new site quickstart
Once you have created the project follow the instructions:
- Download a theme into the same-named folder.
Choose a theme, or
create your own with the
hugo new theme <THEMENAME>
command. - You can add content by creating a single files
with
hugo new <SECTIONNAME>/<FILENAME>.<FORMAT>
. - Start the built-in live server via
hugo server
and it will run at localhost:1313
Here are a couple of useful links: