From 8e860b04dbe4558450e7bf4ba111294b86da5ae3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 29 Apr 2023 02:07:31 +0200 Subject: [PATCH] Add tiny example in the README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index df5cd48..8a25b2b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Tiny crate for simple configuration management. +```rust +let ip_addr: std::net::IpAddr = micronfig::required("IP_ADDRESS"); +``` + ## Links [![Crates.io](https://img.shields.io/crates/v/micronfig)](https://crates.io/crates/micronfig)