MCPcopy Create free account
hub / github.com/gogs/gogs / Validate

Method Validate

internal/form/org.go:12–14  ·  view source on GitHub ↗
(ctx *macaron.Context, errs binding.Errors)

Source from the content-addressed store, hash-verified

10}
11
12func (f *CreateOrg) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
13 return validate(errs, ctx.Data, f, ctx.Locale)
14}
15
16type UpdateOrgSetting struct {
17 Name string `binding:"Required;AlphaDashDot;MaxSize(35)" locale:"org.org_name_holder"`

Callers

nothing calls this directly

Calls 1

validateFunction · 0.85

Tested by

no test coverage detected