Skip to content

Commit

Permalink
add toml to API description
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed May 25, 2021
1 parent a80b748 commit 742c297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

// Backend that loads a configuration from a file.
// It supports json and yaml formats.
// It supports json and yaml and toml formats.
type Backend struct {
path string
name string
Expand Down Expand Up @@ -51,7 +51,7 @@ func NewOptionalBackend(path string) *Backend {
}

// Unmarshal takes a struct pointer and unmarshals the file into it,
// using either json or yaml based on the file extention.
// using either json or yaml or toml based on the file extention.
func (b *Backend) Unmarshal(ctx context.Context, to interface{}) error {
f, err := os.Open(b.path)
if err != nil {
Expand Down

0 comments on commit 742c297

Please sign in to comment.