/learn-go

Learning golang

Primary LanguageGo

learn-go

Learning golang ... WIP

Go Data Structures and errata

Go iteration with slices, structs, more

Go Typing System, var, const ...

Go Modules, examples, package management system, exports and identifiers

WIP : function signatures

Here's a Go function signature that takes in a value of any type v interface {}, and returns a slice of bytes and an error (from package json):

func Marshal(v interface{}) ([]byte, error)