18 lines
332 B
Go
18 lines
332 B
Go
package cnf
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// ConfigurationFormat is the common interface for all configuration parser
|
|
type ConfigurationFormat interface {
|
|
// Parse the given file
|
|
Parse(io.Reader) error
|
|
|
|
// Get the value of a field if it exists
|
|
Get(string) (string, bool)
|
|
|
|
// Set the value of a field if exists
|
|
Set(string, string) bool
|
|
}
|