Lines Matching defs:File
29 type File struct { struct
30 options LoadOptions
31 dataSources []dataSource
34 BlockMode bool
35 lock sync.RWMutex
38 sectionList []string
41 sectionIndexes []int
44 sections map[string][]*Section
46 NameMapper
47 ValueMapper
83 func (f *File) NewSection(name string) (*Section, error) {
114 func (f *File) NewRawSection(name, body string) (*Section, error) {
126 func (f *File) NewSections(names ...string) (err error) {
136 func (f *File) GetSection(name string) (*Section, error) {
146 func (f *File) SectionsByName(name string) ([]*Section, error) {
168 func (f *File) Section(name string) *Section {
180 func (f *File) SectionWithIndex(name string, index int) *Section {
193 func (f *File) Sections() []*Section {
207 func (f *File) ChildSections(name string) []*Section {
212 func (f *File) SectionStrings() []string {
219 func (f *File) DeleteSection(name string) {
234 func (f *File) DeleteSectionWithIndex(name string, index int) error {
284 func (f *File) reload(s dataSource) error {
295 func (f *File) Reload() (err error) {
313 func (f *File) Append(source interface{}, others ...interface{}) error {
329 func (f *File) writeToBuffer(indent string) (*bytes.Buffer, error) {
489 func (f *File) WriteToIndent(w io.Writer, indent string) (int64, error) {
498 func (f *File) WriteTo(w io.Writer) (int64, error) {
503 func (f *File) SaveToIndent(filename, indent string) error {
515 func (f *File) SaveTo(filename string) error {