This repository contains the source code for Go Tutorial for Beginners #31 - HTTP Client.
http_get/- Basic GET request with http.Get, status codes, headers, io.ReadAllhttp_post/- POST request with JSON body, struct tags, json.Marshal, json.Unmarshalhttp_client/- Custom http.Client with timeouts, http.NewRequest, headers, url.Valueshttp_json/- JSON patterns with json.NewDecoder, helper functions, map[string]any
cd http_get && go run .
cd http_post && go run .
cd http_client && go run .
cd http_json && go run .Go Tutorial for Beginners #31 - HTTP Client
MIT License - Feel free to use this code for learning!