Documentation ¶
Index ¶
- Variables
- func Merge(a, b map[string]interface{}) map[string]interface{}
- func MergeWithComment(a, b map[string]interface{}, comment string) map[string]interface{}
- type Json
- func (j *Json) Close() error
- func (j *Json) Drop() error
- func (j *Json) Lock() error
- func (j *Json) Open(filePath string) (database.Driver, error)
- func (j *Json) Run(migration io.Reader) error
- func (j *Json) SetVersion(version int, dirty bool) error
- func (j *Json) Unlock() error
- func (j *Json) Version() (int, bool, error)
- type JsonConfig
- type Yaml
- func (y *Yaml) Close() error
- func (y *Yaml) Drop() error
- func (y *Yaml) Lock() error
- func (y *Yaml) Open(filePath string) (database.Driver, error)
- func (y *Yaml) Run(migration io.Reader) error
- func (y *Yaml) SetVersion(version int, dirty bool) error
- func (y *Yaml) Unlock() error
- func (y *Yaml) Version() (int, bool, error)
- type YamlConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilFile = fmt.Errorf("no file") ErrNoPath = fmt.Errorf("no file path") )
Functions ¶
func MergeWithComment ¶
Types ¶
type Json ¶
type Json struct {
// contains filtered or unexported fields
}
func NewJson ¶
func NewJson(config *JsonConfig) (*Json, error)
type JsonConfig ¶
type Yaml ¶
type Yaml struct {
// contains filtered or unexported fields
}
func NewYaml ¶
func NewYaml(config *YamlConfig) (*Yaml, error)
type YamlConfig ¶
Click to show internal directories.
Click to hide internal directories.