Skip to content

Commit

Permalink
Add yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
minhduc140583 committed Jun 27, 2020
1 parent a2c2fe3 commit f76a3fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions file.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package io
import "os"

type File struct {
Name string `mapstructure:"name" json:"name,omitempty" gorm:"column:name" bson:"name,omitempty" dynamodbav:"name,omitempty" firestore:"name,omitempty"`
Content string `mapstructure:"content" json:"content,omitempty" gorm:"column:content" bson:"content,omitempty" dynamodbav:"content,omitempty" firestore:"content,omitempty"`
Name string `yaml:"name" mapstructure:"name" json:"name,omitempty" gorm:"column:name" bson:"name,omitempty" dynamodbav:"name,omitempty" firestore:"name,omitempty"`
Content string `yaml:"content" mapstructure:"content" json:"content,omitempty" gorm:"column:content" bson:"content,omitempty" dynamodbav:"content,omitempty" firestore:"content,omitempty"`
}

func SaveFiles(rootDirectory string, files []File) error {
Expand Down

0 comments on commit f76a3fa

Please sign in to comment.