code-examples

module
v0.0.0-...-218aa17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2026 License: MIT

README

Code Examples

This repository contains exercises as I learn them from various sources.

Complementary to my notes over at dev-log.

Directories

Path Synopsis
go
basics/composition command
This program shows how structs and intefaces can be embedded to form higher types.
This program shows how structs and intefaces can be embedded to form higher types.
basics/context command
This code show how to create, update, and read a context
This code show how to create, update, and read a context
basics/generics command
This package shows some of the use cases of generic types.
This package shows some of the use cases of generic types.
basics/goroutines command
This program demonstrates how to quickly start a goroutine and also how to profile memory usage.
This program demonstrates how to quickly start a goroutine and also how to profile memory usage.
basics/http-server command
This program demonstrates the simplest way to use an http-server.
This program demonstrates the simplest way to use an http-server.
basics/interfaces command
This package describles how interfaces and concrete types are tied to each other
This package describles how interfaces and concrete types are tied to each other
basics/parse-json command
Package parse-json shows how to read/write a json file https://pkg.go.dev/encoding/json
Package parse-json shows how to read/write a json file https://pkg.go.dev/encoding/json
basics/read-file command
This program demonstrates different ways to read a file
This program demonstrates different ways to read a file
basics/read-stdin command
Package read-stdin shows how write a func to read from standard input similar to common unix commands like `cat` or `echo`.
Package read-stdin shows how write a func to read from standard input similar to common unix commands like `cat` or `echo`.
basics/string-manipulation command
This package contains some string manipulation functions
This package contains some string manipulation functions
sleep-sort command
check-sites module
mail-server module
slack-proxy module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL