chore: formating
This commit is contained in:
parent
4483475bf5
commit
7d62f464bb
16
education.go
16
education.go
@ -9,15 +9,15 @@ import (
|
||||
type EducationType struct {
|
||||
Auth AuthInfoType `yaml:"auth" json:"auth"`
|
||||
Date string `yaml:"date" json:"date"`
|
||||
Title string `yaml:"title" json:"title"`
|
||||
Org string `yaml:"org" json:"org"`
|
||||
Location string `yaml:"location" json:"location"`
|
||||
Title string `yaml:"title" json:"title"`
|
||||
Org string `yaml:"org" json:"org"`
|
||||
Location string `yaml:"location" json:"location"`
|
||||
Cert string `yaml:"cert" json:"cert"`
|
||||
Description []string `yaml:"description" json:"description"`
|
||||
Tools []string `yaml:"tools" json:"tools"`
|
||||
Description []string `yaml:"description" json:"description"`
|
||||
Tools []string `yaml:"tools" json:"tools"`
|
||||
}
|
||||
type Education struct {
|
||||
Education []EducationType `yaml:"education" json:"education"`
|
||||
Education []EducationType `yaml:"education" json:"education"`
|
||||
}
|
||||
type ShowEducationType struct {
|
||||
Auth AuthInfoType `yaml:"auth" json:"auth"`
|
||||
@ -36,8 +36,8 @@ func (education *Education)Load(path string) ([]EducationType, error) {
|
||||
}
|
||||
defer file.Close()
|
||||
if err := d.Decode(&education); err != nil {
|
||||
fmt.Printf("Decode: %v", err)
|
||||
fmt.Printf("Decode: %v", err)
|
||||
return education.Education, err
|
||||
}
|
||||
return education.Education, nil
|
||||
return education.Education, nil
|
||||
}
|
||||
|
14
talks.go
14
talks.go
@ -9,13 +9,13 @@ import (
|
||||
type TalksType struct {
|
||||
Auth AuthInfoType `yaml:"auth" json:"auth"`
|
||||
Date string `yaml:"date" json:"date"`
|
||||
Title string `yaml:"title" json:"title"`
|
||||
Org string `yaml:"org" json:"org"`
|
||||
Location string `yaml:"location" json:"location"`
|
||||
Description []string `yaml:"description" json:"description"`
|
||||
Title string `yaml:"title" json:"title"`
|
||||
Org string `yaml:"org" json:"org"`
|
||||
Location string `yaml:"location" json:"location"`
|
||||
Description []string `yaml:"description" json:"description"`
|
||||
}
|
||||
type Talks struct {
|
||||
Talks []TalksType `yaml:"talks" json:"talks"`
|
||||
Talks []TalksType `yaml:"talks" json:"talks"`
|
||||
}
|
||||
|
||||
type ShowTalksType struct {
|
||||
@ -34,8 +34,8 @@ func (talks *Talks)Load(path string) ([]TalksType, error) {
|
||||
}
|
||||
defer file.Close()
|
||||
if err := d.Decode(&talks); err != nil {
|
||||
fmt.Printf("Decode: %v", err)
|
||||
fmt.Printf("Decode: %v", err)
|
||||
return talks.Talks, err
|
||||
}
|
||||
return talks.Talks, nil
|
||||
return talks.Talks, nil
|
||||
}
|
||||
|
@ -34,8 +34,8 @@ func (teaching *Teaching)Load(path string) ([]TeachingType, error) {
|
||||
}
|
||||
defer file.Close()
|
||||
if err := d.Decode(&teaching); err != nil {
|
||||
fmt.Printf("Decode: %v", err)
|
||||
fmt.Printf("Decode: %v", err)
|
||||
return teaching.Teaching, err
|
||||
}
|
||||
return teaching.Teaching, nil
|
||||
return teaching.Teaching, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user