github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/conf/section_config/section_config.go (about)

     1  package section_config
     2  
     3  import "fmt"
     4  
     5  type Section struct {
     6  	Name  string
     7  	Value string
     8  }
     9  
    10  func (s Section) String() string {
    11  	return fmt.Sprintf("[%s:%s]", s.Name, s.Value)
    12  }
    13  
    14  type SectionConfig interface {
    15  	GetSection() *Section
    16  	SetSection(string, string)
    17  }