Go
Public samples that show Go services and language-crossing learning from .NET.
golang-samples
Go samples - hello world to stdlib weather API
golang-samples is a small Go learning repo for engineers crossing from .NET into Go HTTP services. hello_world is a minimal console program; weather_api is a net/http service on Go 1.22 method routing that serves GET /weatherforecast with camelCase JSON forecasts, mirroring the familiar ASP.NET (and Rust Axum) weather sample using only the standard library - no third-party router. Aimed at keeping the first steps tiny and recognisable.
Go |
net/http |
encoding/json |