mirror of
https://dev.sigpipe.me/dashie/git.txt
synced 2025-10-07 08:22:45 +02:00
17 lines
380 B
Go
17 lines
380 B
Go
package form
|
|
|
|
import (
|
|
"github.com/go-macaron/binding"
|
|
"gopkg.in/macaron.v1"
|
|
)
|
|
|
|
// UpdateSettingsProfile form struct
|
|
type UpdateSettingsProfile struct {
|
|
Email string `binding:"Required;Email;MaxSize(254)"`
|
|
}
|
|
|
|
// Validate func
|
|
func (f *UpdateSettingsProfile) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
|
|
return validate(errs, ctx.Data, f, ctx.Locale)
|
|
}
|