https://github.com/mpolinowski/golang-refresher
The Go Standard Library - Go refresh
https://github.com/mpolinowski/golang-refresher
go golang sample-code standard-library
Last synced: 8 months ago
JSON representation
The Go Standard Library - Go refresh
- Host: GitHub
- URL: https://github.com/mpolinowski/golang-refresher
- Owner: mpolinowski
- Created: 2021-10-05T05:39:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-05T05:39:12.000Z (over 4 years ago)
- Last Synced: 2025-06-06T20:38:25.624Z (about 1 year ago)
- Topics: go, golang, sample-code, standard-library
- Language: Go
- Homepage: https://mpolinowski.github.io/devnotes/2021-09-11--golang-refresher-fmt-strings
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Refresher
Walking through the [Go standard library](https://pkg.go.dev/std) with example code.
## [Printing and Formatting](https://mpolinowski.github.io/devnotes/2021-09-11--golang-refresher-fmt-strings)
- [fmt](https://pkg.go.dev/fmt@go1.17.1)
- [Print](https://pkg.go.dev/fmt@go1.17.1#Print)
- [Printf](https://pkg.go.dev/fmt@go1.17.1#Printf)
- [Println](https://pkg.go.dev/fmt@go1.17.1#Println)
- [Sprint](https://pkg.go.dev/fmt@go1.17.1#Sprint)
- [Sprintf](https://pkg.go.dev/fmt@go1.17.1#Sprintf)
- [Sprintln](https://pkg.go.dev/fmt@go1.17.1#Sprintln)
- [os.stdin](https://pkg.go.dev/os)
## [Working with Strings](https://mpolinowski.github.io/devnotes/2021-09-11--golang-refresher-fmt-strings)
- [strings](https://pkg.go.dev/strings)
- [Builder](https://pkg.go.dev/strings#example-Builder)
- [Compare](https://pkg.go.dev/strings#example-Compare)
- [Contains](https://pkg.go.dev/strings#example-Contains)
- [ContainsAny](https://pkg.go.dev/strings#example-ContainsAny)
- [Count](https://pkg.go.dev/strings#example-Count)
- [EqualFold](https://pkg.go.dev/strings#example-EqualFold)
- [Fields](https://pkg.go.dev/strings#example-Fields)
- [FieldsFunc](https://pkg.go.dev/strings#example-FieldsFunc)
- [HasPrefix](https://pkg.go.dev/strings#example-HasPrefix)
- [HasSuffix](https://pkg.go.dev/strings#example-HasSuffix)
- [Index](https://pkg.go.dev/strings#example-Index)
- [IndexAny](https://pkg.go.dev/strings#example-IndexAny)
- [Join](https://pkg.go.dev/strings#example-Join)
- [Map](https://pkg.go.dev/strings#example-Map)
- [NewReplacer](https://pkg.go.dev/strings#example-NewReplacer)
- [Replace](https://pkg.go.dev/strings#example-Replace)
- [ToLower](https://pkg.go.dev/strings#example-ToLower)
- [ToTitle](https://pkg.go.dev/strings#example-ToTitle)
- [ToUpper](https://pkg.go.dev/strings#example-ToUpper)
- [strconv]()
- [FormatBool](https://pkg.go.dev/strconv#example-FormatBool)
- [FormatFloat](https://pkg.go.dev/strconv#example-FormatFloat)
- [FormatInt](https://pkg.go.dev/strconv#example-FormatInt)
- [FormatUint](https://pkg.go.dev/strconv#example-FormatUint)
- [Itoa](https://pkg.go.dev/strconv#example-Itoa)
- [ParseBool](https://pkg.go.dev/strconv#example-ParseBool)
- [ParseFloat](https://pkg.go.dev/strconv#example-ParseFloat)
- [ParseInt](https://pkg.go.dev/strconv#example-ParseInt)
- [ParseUint](https://pkg.go.dev/strconv#example-ParseUint)
- [unicode](https://pkg.go.dev/unicode)
- [func IsDigit(r rune) bool](https://pkg.go.dev/unicode#IsDigit)
- [func IsGraphic(r rune) bool](https://pkg.go.dev/unicode#IsGraphic)
- [func IsLetter(r rune) bool](https://pkg.go.dev/unicode#IsLetter)
- [func IsLower(r rune) bool](https://pkg.go.dev/unicode#IsLower)
- [func IsNumber(r rune) bool](https://pkg.go.dev/unicode#IsNumber)
- [func IsPunct(r rune) bool](https://pkg.go.dev/unicode#IsPunct)
- [func IsSpace(r rune) bool](https://pkg.go.dev/unicode#IsSpace)
- [func IsUpper(r rune) bool](https://pkg.go.dev/unicode#IsUpper)
## [Doing Calculations](https://mpolinowski.github.io/devnotes/2021-09-11--golang-refresher-math-os)
- [math](https://pkg.go.dev/math)
- [Ceil](https://pkg.go.dev/math#example-Ceil)
- [Cbrt](https://pkg.go.dev/math#example-Cbrt)
- [Cos](https://pkg.go.dev/math#example-Cos)
- [Exp](https://pkg.go.dev/math#example-Exp)
- [Hypot](https://pkg.go.dev/math#Hypot)
- [Pow](https://pkg.go.dev/math#example-Pow)
- [Round](https://pkg.go.dev/math#example-Round)
- [RoundToEven](https://pkg.go.dev/math#example-RoundToEven)
- [Sin](https://pkg.go.dev/math#example-Sin)
- [Sqrt](https://pkg.go.dev/math#example-Sqrt)
- [Tan](https://pkg.go.dev/math#example-Tan)
- [math/rand](https://pkg.go.dev/math/rand)
- [Intn](https://pkg.go.dev/math/rand#example-Intn)
- [Perm](https://pkg.go.dev/math/rand#example-Perm)
- [Shuffle](https://pkg.go.dev/math/rand#example-Shuffle)
## [Working with the Host File System](https://mpolinowski.github.io/devnotes/2021-09-11--golang-refresher-math-os)
- [os](https://pkg.go.dev/os)
- [Chmod](https://pkg.go.dev/os#example-Chmod)
- [Chtimes](https://pkg.go.dev/os#example-Chtimes)
- [CreateTemp](https://pkg.go.dev/os#example-CreateTemp)
- [Expand](https://pkg.go.dev/os#example-Expand)
- [ExpandEnv](https://pkg.go.dev/os#example-ExpandEnv)
- [FileMode](https://pkg.go.dev/os#example-FileMode)
- [Getenv](https://pkg.go.dev/os#example-Getenv)
- [LookupEnv](https://pkg.go.dev/os#example-LookupEnv)
- [MkdirTemp](https://pkg.go.dev/os#example-MkdirTemp)
- [OpenFile](https://pkg.go.dev/os#example-OpenFile)
- [OpenFile (Append)](https://pkg.go.dev/os#example-OpenFile-Append)
- [ReadDir](https://pkg.go.dev/os#example-ReadDir)
- [ReadFile](https://pkg.go.dev/os#example-ReadFile)
- [Unsetenv](https://pkg.go.dev/os#example-Unsetenv)
- [WriteFile](https://pkg.go.dev/os#example-WriteFile)
- [io/ioutil](https://pkg.go.dev/io/ioutil)
- [ReadAll](https://pkg.go.dev/io/ioutil#example-ReadAll)
- [ReadDir](https://pkg.go.dev/io/ioutil#example-ReadDir)
- [ReadFile](https://pkg.go.dev/io/ioutil#example-ReadFile)
- [WriteFile](https://pkg.go.dev/io/ioutil#example-WriteFile)
## [Networking](https://mpolinowski.github.io/devnotes/2021-09-11--golang-refresher-network)
- [net/http](https://pkg.go.dev/net/http)
- [FileServer]()
- [Get]()
- [Handle]()
- [HandleFunc]()
- [net/url](https://pkg.go.dev/net/url)
- [ParseQuery]()
- [URL]()
- [URL.Parse]()
- [URL.Port]()
- [URL.Query]()
- [URL.Redacted]()
- [URL.RequestURI]()
- [URL.ResolveReference]()
- [URL.String]()
## [Data Encoding](https://mpolinowski.github.io/devnotes/2021-09-11--golang-refresher-network)
- [encoding/json](https://pkg.go.dev/encoding/json)
- [Decoder]()
- [HTMLEscape]()
- [Indent]()
- [Marshal]()
- [MarshalIndent]()
- [Unmarshal]()
- [Valid]()