Skip to content

sylhare/Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go

Experiments on Go

Go-lang

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

Introduction

Run your script

Run you script hello.go with:

go run hello.go

Install a Go script

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

Hugo is a go framework for building websites, a bit like Jekyll.

Get Started with Hugo

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

Configure your site

Once you have created the project follow the instructions:

  1. Download a theme into the same-named folder. Choose a theme, or create your own with the hugo new theme <THEMENAME> command.
  2. You can add content by creating a single files with hugo new <SECTIONNAME>/<FILENAME>.<FORMAT>.
  3. Start the built-in live server via hugo server and it will run at localhost:1313

Sources

Here are a couple of useful links:

About

Experiments on Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published