From ebbcf66cbe3b86b7065f7801cbcb6a3134884868 Mon Sep 17 00:00:00 2001 From: Fatih Arslan Date: Sun, 17 Aug 2014 20:32:57 +0300 Subject: [PATCH] readme: add example about field fields --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index dfe07d6..011e6ab 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,9 @@ addrField := s.Field("Server").Field("Addr") // Get the value for addr a := addrField.Value().(string) + +// Or get all fields +httpServer := s.Field("Server").Fields() ``` We can also get a slice of Fields from the Struct type to iterate over all