From c3d3c616a3f64a52ff58255221a1c35174efd9cd Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Sat, 20 Jun 2015 16:06:30 -0400 Subject: [PATCH] dont export NewChildSection --- section.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/section.go b/section.go index 1c554a0..2c3bebf 100644 --- a/section.go +++ b/section.go @@ -18,7 +18,7 @@ func NewSection() *Section { } } -func NewChildSection(parent *Section) *Section { +func newChildSection(parent *Section) *Section { return &Section{ parent: parent, values: make(map[string]Value), @@ -45,7 +45,7 @@ func (section *Section) UpdateValue(value interface{}) error { } func (section *Section) AddSection(name string) *Section { - childSection := NewChildSection(section) + childSection := newChildSection(section) section.values[name] = childSection return childSection }