chore: formating

This commit is contained in:
Jesús Pérez 2024-09-16 20:35:48 +01:00
parent 4483475bf5
commit 7d62f464bb
No known key found for this signature in database
3 changed files with 17 additions and 17 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}