Skip to content

tw-eugeneoei/go

Repository files navigation

Basic Go

  • go test -bench=.
  • go test -cover
  • go test ./... -cover
  • In Go if a symbol (variables, types, functions et al) starts with a lowercase symbol then it is private outside the package it's defined in.
  • go install github.com/kisielk/errcheck@latest
    • package to help identify errors that have not been checked
    • errcheck .
  • In Go interface resolution is implicit. If the type you pass in matches what the interface is asking for, it will compile. (structsmethodsinterfaces.go)

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages