aizatto.com
Ctrlk
  • aizatto.com
  • Table of Contents
  • Portfolio, Projects, Tools, Toys
  • Interview Guide
  • Engineering Code
  • Engineering Management
  • Why GitBook?
  • Getting into Tech
  • Personal Goals
  • Daily Drivers
  • Contacting Me
  • Notes
    • JavaScript
    • Node.js
    • Technical Due Diligence
    • Archive
      • Amazon Echo Dot (3rd Gen) with clock
      • Apple
      • Audible
      • Balance
      • Bags
      • Bandwidth Requirements
      • B2B/B2C
      • Blockchain
      • Board Games
      • Broadway
      • Cheap, Good, Fast
      • CLI
      • Cloud Providers
      • Communication
      • Company
      • 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
      • Hiking
      • Home Device Calling
      • iCalendar
      • Keyboards
      • Malaysia Insurance
      • Mental Health Malaysia
      • Multiroom Wireless Speaker System
      • Musicals
      • Mouse
      • Movies
      • Password Managers
      • Phabricator
      • Physical Health
      • Podcasts
      • Programming Bootcamps
      • Property
      • Productivity
      • Redang
      • Relationships
      • Referral Codes
      • Remote Calls
      • Remote Work
      • 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 Hardware
      • Web Development
      • Software Engineering
  • More on Notion
Powered by GitBook
On this page
  • Set up
  • Inside .bash_profile
  • Others
  • Pros
  • Cons
  • Editorconfig
  • GraphQL
  • length
  • Best Practices
  • Examples
  • Wiki

Was this helpful?

  1. Notes
  2. Archive

Go Lang

  • https://golang.org/

  • https://golang.org/doc/code.html

  • https://golang.org/doc/effective_go.html

  • https://github.com/golang/go/wiki/Learn

  • https://github.com/golang/go/wiki/CodeReviewComments

  • Git pre-commit hook

Set up

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

Inside .bash_profile

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

Others

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

Pros

  • gofmt

Cons

  • Uses tabs for identation

Editorconfig

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

GraphQL

https://github.com/neelance/graphql-go https://github.com/graphql-go/graphql https://github.com/graphql-go/relay

length

len("/view/")

Best Practices

https://talks.golang.org/2013/bestpractices.slide#1 https://peter.bourgon.org/go-best-practices-2016/#development-environment https://medium.com/@benbjohnson/standard-package-layout-7cdbc8391fc1 https://devhints.io/go

Examples

Wiki

https://golang.org/doc/articles/wiki/ https://golang.org/doc/articles/wiki/final.go

PreviousGTDNextHeadsets

Last updated 6 years ago

Was this helpful?