aizatto.com
search
Ctrlk
  • aizatto.com
  • Table of Contents
  • Portfolio, Projects, Tools, Toys
  • Interview Guidechevron-right
  • Engineering Codechevron-right
  • Engineering Managementchevron-right
  • Why GitBook?
  • Getting into Techchevron-right
  • Personal Goals
  • Daily Drivers
  • Contacting Me
  • Notes
    • JavaScriptchevron-right
    • Node.jschevron-right
    • Technical Due Diligence
    • Archivechevron-right
      • Amazon Echo Dot (3rd Gen) with clock
      • Applechevron-right
      • Audible
      • Balancechevron-right
      • Bags
      • Bandwidth Requirements
      • B2B/B2C
      • Blockchain
      • Board Gameschevron-right
      • Broadway
      • Cheap, Good, Fast
      • CLIchevron-right
      • Cloud Providerschevron-right
      • Communicationchevron-right
      • Companychevron-right
      • Content Creation
      • COVID 19/Corona Virus
      • Coworking Spaces
      • Daily Routine
      • Dating
      • Displays / Monitors
      • DNS
      • Domain Registrars
      • Driving
      • eCommerce
      • Empire Building
      • Facebook for Developers
      • Fever
      • Fiverr
      • Flights
      • Gaming Tablet
      • GitHub
      • GTD
      • Go Lang
      • Headsets
      • Hikingchevron-right
      • Home Device Calling
      • iCalendar
      • Keyboardschevron-right
      • Malaysia Insurance
      • Mental Health Malaysia
      • Multiroom Wireless Speaker System
      • Musicals
      • Mouse
      • Movies
      • Password Managers
      • Phabricator
      • Physical Healthchevron-right
      • Podcasts
      • Programming Bootcamps
      • Property
      • Productivitychevron-right
      • Redang
      • Relationships
      • Referral Codes
      • Remote Calls
      • Remote Workchevron-right
      • Road Trips
      • Ruby / Ruby on Rails
      • Scraping
      • Slack
      • Stripe
      • Singapore
      • UX
      • Venture Builder
      • Video Games
      • Virtual Personal Assistant
      • VPN
      • WebDAV / CalDAV
      • WebSocket
      • Withings
      • Xiaomi Roborock Mijia
      • Old Hardwarechevron-right
      • Web Developmentchevron-right
      • Software Engineeringchevron-right
  • More on Notionarrow-up-right-from-square
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. Noteschevron-right
  2. Archive

Go Lang

  • https://golang.org/arrow-up-right

  • https://golang.org/doc/code.htmlarrow-up-right

  • https://golang.org/doc/effective_go.htmlarrow-up-right

  • https://github.com/golang/go/wiki/Learnarrow-up-right

  • https://github.com/golang/go/wiki/CodeReviewCommentsarrow-up-right

  • Git pre-commit hookarrow-up-right

hashtag
Set up

brew install go
mkdir -p ~/src/go
ln -s ~/src/go ~/go

hashtag
Inside .bash_profile

[[ -d $HOME/src/go/ ]] && export GOPATH=$HOME/src/go/

hashtag
Others

export GOPATH=$(go env GOPATH)
export PATH=$PATH:$(go env GOPATH)/bin

hashtag
Pros

  • gofmt

hashtag
Cons

  • Uses tabs for identation

hashtag
Editorconfig

https://github.com/editorconfig/editorconfig-core-go/blob/master/.editorconfigarrow-up-right

hashtag
GraphQL

https://github.com/neelance/graphql-goarrow-up-right https://github.com/graphql-go/graphqlarrow-up-right https://github.com/graphql-go/relayarrow-up-right

hashtag
length

hashtag
Best Practices

https://talks.golang.org/2013/bestpractices.slide#1arrow-up-right https://peter.bourgon.org/go-best-practices-2016/#development-environmentarrow-up-right https://medium.com/@benbjohnson/standard-package-layout-7cdbc8391fc1arrow-up-right https://devhints.io/goarrow-up-right

hashtag
Examples

hashtag
Wiki

https://golang.org/doc/articles/wiki/arrow-up-right https://golang.org/doc/articles/wiki/final.goarrow-up-right

PreviousGTDchevron-leftNextHeadsetschevron-right

Last updated 6 years ago

Was this helpful?

  • Set up
  • Inside .bash_profile
  • Others
  • Pros
  • Cons
  • Editorconfig
  • GraphQL
  • length
  • Best Practices
  • Examples
  • Wiki

Was this helpful?

len("/view/")