Contents
- Getting started
- Basic types
- Booleans
- Integers
- Floating-point numbers
- big.Int, big.Float, and big.Rat
- Math
- Random numbers
- UUIDs
- Characters and runes
- Strings
- Constants
- Enums
- Arrays
- Slices
- Maps
- Structs
- Interfaces
- Empty interface
- Pointers
- Unions
- Channels
- Zero values
- Zero values and absence
- Type casting
- Type aliases
- Equality and comparison
- Operators
- Bit manipulation
- Bytes and binary data
- Variables
- Constants
- Strings
- Find string in another string
- Compare strings
- Interning values with unique
- Convert to lower case or upper case
- Convert to int, float
- Trim strings (remove chars or substrings)
- Replace text in strings
- Split and join strings
- Format text
- Parse text
- Regular expressions
- Read file line by line
- Normalize newlines
- Localization
- Pointers
- Arrays
- Slices
- Maps
- Structs
- Interfaces
- Empty interface
- if, switch, goto
- for, while loops
- range statement
- Functions
- Methods
- Error handling
- Defer
- Panic and recover
- Concurrency
- Channels and select
- Mutex
- Packages
- Files and I/O
- Time and date
- Command line arguments
- Logging
- Executing commands
- Hex, base64 encoding
- JSON
- XML
- CSV
- YAML
- SQL
- MongoDB
- Redis
- TCP sockets
- HTTP Client
- HTTP Server
- Hello World
- Create an HTTPS server
- HTTP Hello World with custom server and mux
- Responding to an HTTP Request using Templates
- Serving content using ServeMux
- Routing with ServeMux patterns
- Using a handler function
- Handling http method, accessing query strings & request body
- File uploads
- REST APIs
- HTTP headers
- Cookies
- Sessions
- WebSockets
- Text and HTML templates
- Reflection
- Context
- Package fmt
- OS Signals
- Testing
- Basic Test
- Table-driven unit tests
- Testing using setUp and tearDown function
- Benchmarks
- Test context, attributes, and output
- Example tests (self documenting tests)
- Testing HTTP requests
- Testing concurrent code with testing/synctest
- Set/Reset mock function in tests
- View code coverage in HTML format
- Debugging
- Calling C from Go with cgo
- Profiling using go tool pprof
- Cross compilation
- Conditional compilation with build tags
- Inlining functions
- sync.Pool for better performance
- gob
- Plugin
- HTTP server middleware
- Protobuf in Go
- Console I/O
- Cryptography
- JWT Authorization
- Parsing and validating a token using the HMAC signing method
- Creating a token using a custom claims type
- Creating, signing, and encoding a JWT token using the HMAC signing method
- Checking JWT validation errors
- Getting token from HTTP Authorization header
- Using RegisteredClaims to create a token
- OAuth
- Images (PNG, JPEG, BMP, TIFF, WEBP, VP8, GIF)
- The Go Command
- Code generation with go/ast
- Testing code with CI services
- Windows GUI programming
- Contributors