// Code generated by ent, DO NOT EDIT. package ent import ( "epic-ent/internal/domain/entity" "epic-ent/internal/ent/epicartifactinfo" "epic-ent/internal/ent/epicgvgattackteams" "epic-ent/internal/ent/epicgvgdefenseattackmapping" "epic-ent/internal/ent/epicgvgdefenseteams" "epic-ent/internal/ent/epicheroinfo" "epic-ent/internal/ent/epicherouserbuild" "epic-ent/internal/ent/epici18nmappings" "epic-ent/internal/ent/fribbleheroset" "epic-ent/internal/ent/gearsetinfo" ) // The init function reads all schema descriptors with runtime code // (default values, validators, hooks and policies) and stitches it // to their package variables. func init() { epicartifactinfoFields := entity.EpicArtifactInfo{}.Fields() _ = epicartifactinfoFields // epicartifactinfoDescArtifactName is the schema descriptor for artifact_name field. epicartifactinfoDescArtifactName := epicartifactinfoFields[1].Descriptor() // epicartifactinfo.ArtifactNameValidator is a validator for the "artifact_name" field. It is called by the builders before save. epicartifactinfo.ArtifactNameValidator = epicartifactinfoDescArtifactName.Validators[0].(func(string) error) // epicartifactinfoDescArtifactCode is the schema descriptor for artifact_code field. epicartifactinfoDescArtifactCode := epicartifactinfoFields[2].Descriptor() // epicartifactinfo.ArtifactCodeValidator is a validator for the "artifact_code" field. It is called by the builders before save. epicartifactinfo.ArtifactCodeValidator = epicartifactinfoDescArtifactCode.Validators[0].(func(string) error) // epicartifactinfoDescCreator is the schema descriptor for creator field. epicartifactinfoDescCreator := epicartifactinfoFields[3].Descriptor() // epicartifactinfo.CreatorValidator is a validator for the "creator" field. It is called by the builders before save. epicartifactinfo.CreatorValidator = epicartifactinfoDescCreator.Validators[0].(func(string) error) // epicartifactinfoDescUpdater is the schema descriptor for updater field. epicartifactinfoDescUpdater := epicartifactinfoFields[5].Descriptor() // epicartifactinfo.UpdaterValidator is a validator for the "updater" field. It is called by the builders before save. epicartifactinfo.UpdaterValidator = epicartifactinfoDescUpdater.Validators[0].(func(string) error) // epicartifactinfoDescRarity is the schema descriptor for rarity field. epicartifactinfoDescRarity := epicartifactinfoFields[11].Descriptor() // epicartifactinfo.RarityValidator is a validator for the "rarity" field. It is called by the builders before save. epicartifactinfo.RarityValidator = epicartifactinfoDescRarity.Validators[0].(func(string) error) // epicartifactinfoDescRole is the schema descriptor for role field. epicartifactinfoDescRole := epicartifactinfoFields[12].Descriptor() // epicartifactinfo.RoleValidator is a validator for the "role" field. It is called by the builders before save. epicartifactinfo.RoleValidator = epicartifactinfoDescRole.Validators[0].(func(string) error) // epicartifactinfoDescArtifactNameEn is the schema descriptor for artifact_name_en field. epicartifactinfoDescArtifactNameEn := epicartifactinfoFields[13].Descriptor() // epicartifactinfo.ArtifactNameEnValidator is a validator for the "artifact_name_en" field. It is called by the builders before save. epicartifactinfo.ArtifactNameEnValidator = epicartifactinfoDescArtifactNameEn.Validators[0].(func(string) error) // epicartifactinfoDescImageURL is the schema descriptor for image_url field. epicartifactinfoDescImageURL := epicartifactinfoFields[14].Descriptor() // epicartifactinfo.ImageURLValidator is a validator for the "image_url" field. It is called by the builders before save. epicartifactinfo.ImageURLValidator = epicartifactinfoDescImageURL.Validators[0].(func(string) error) epicgvgattackteamsFields := entity.EpicGvgAttackTeams{}.Fields() _ = epicgvgattackteamsFields // epicgvgattackteamsDescAttackHeroes is the schema descriptor for attack_heroes field. epicgvgattackteamsDescAttackHeroes := epicgvgattackteamsFields[1].Descriptor() // epicgvgattackteams.AttackHeroesValidator is a validator for the "attack_heroes" field. It is called by the builders before save. epicgvgattackteams.AttackHeroesValidator = epicgvgattackteamsDescAttackHeroes.Validators[0].(func(string) error) // epicgvgattackteamsDescCreator is the schema descriptor for creator field. epicgvgattackteamsDescCreator := epicgvgattackteamsFields[2].Descriptor() // epicgvgattackteams.CreatorValidator is a validator for the "creator" field. It is called by the builders before save. epicgvgattackteams.CreatorValidator = epicgvgattackteamsDescCreator.Validators[0].(func(string) error) // epicgvgattackteamsDescUpdater is the schema descriptor for updater field. epicgvgattackteamsDescUpdater := epicgvgattackteamsFields[4].Descriptor() // epicgvgattackteams.UpdaterValidator is a validator for the "updater" field. It is called by the builders before save. epicgvgattackteams.UpdaterValidator = epicgvgattackteamsDescUpdater.Validators[0].(func(string) error) epicgvgdefenseattackmappingFields := entity.EpicGvgDefenseAttackMapping{}.Fields() _ = epicgvgdefenseattackmappingFields // epicgvgdefenseattackmappingDescEquipmentInfo is the schema descriptor for equipment_info field. epicgvgdefenseattackmappingDescEquipmentInfo := epicgvgdefenseattackmappingFields[3].Descriptor() // epicgvgdefenseattackmapping.EquipmentInfoValidator is a validator for the "equipment_info" field. It is called by the builders before save. epicgvgdefenseattackmapping.EquipmentInfoValidator = epicgvgdefenseattackmappingDescEquipmentInfo.Validators[0].(func(string) error) // epicgvgdefenseattackmappingDescArtifacts is the schema descriptor for artifacts field. epicgvgdefenseattackmappingDescArtifacts := epicgvgdefenseattackmappingFields[4].Descriptor() // epicgvgdefenseattackmapping.ArtifactsValidator is a validator for the "artifacts" field. It is called by the builders before save. epicgvgdefenseattackmapping.ArtifactsValidator = epicgvgdefenseattackmappingDescArtifacts.Validators[0].(func(string) error) // epicgvgdefenseattackmappingDescBattleStrategy is the schema descriptor for battle_strategy field. epicgvgdefenseattackmappingDescBattleStrategy := epicgvgdefenseattackmappingFields[5].Descriptor() // epicgvgdefenseattackmapping.BattleStrategyValidator is a validator for the "battle_strategy" field. It is called by the builders before save. epicgvgdefenseattackmapping.BattleStrategyValidator = epicgvgdefenseattackmappingDescBattleStrategy.Validators[0].(func(string) error) // epicgvgdefenseattackmappingDescPrerequisites is the schema descriptor for prerequisites field. epicgvgdefenseattackmappingDescPrerequisites := epicgvgdefenseattackmappingFields[6].Descriptor() // epicgvgdefenseattackmapping.PrerequisitesValidator is a validator for the "prerequisites" field. It is called by the builders before save. epicgvgdefenseattackmapping.PrerequisitesValidator = epicgvgdefenseattackmappingDescPrerequisites.Validators[0].(func(string) error) // epicgvgdefenseattackmappingDescImportantNotes is the schema descriptor for important_notes field. epicgvgdefenseattackmappingDescImportantNotes := epicgvgdefenseattackmappingFields[7].Descriptor() // epicgvgdefenseattackmapping.ImportantNotesValidator is a validator for the "important_notes" field. It is called by the builders before save. epicgvgdefenseattackmapping.ImportantNotesValidator = epicgvgdefenseattackmappingDescImportantNotes.Validators[0].(func(string) error) // epicgvgdefenseattackmappingDescCreator is the schema descriptor for creator field. epicgvgdefenseattackmappingDescCreator := epicgvgdefenseattackmappingFields[8].Descriptor() // epicgvgdefenseattackmapping.CreatorValidator is a validator for the "creator" field. It is called by the builders before save. epicgvgdefenseattackmapping.CreatorValidator = epicgvgdefenseattackmappingDescCreator.Validators[0].(func(string) error) // epicgvgdefenseattackmappingDescUpdater is the schema descriptor for updater field. epicgvgdefenseattackmappingDescUpdater := epicgvgdefenseattackmappingFields[10].Descriptor() // epicgvgdefenseattackmapping.UpdaterValidator is a validator for the "updater" field. It is called by the builders before save. epicgvgdefenseattackmapping.UpdaterValidator = epicgvgdefenseattackmappingDescUpdater.Validators[0].(func(string) error) epicgvgdefenseteamsFields := entity.EpicGvgDefenseTeams{}.Fields() _ = epicgvgdefenseteamsFields // epicgvgdefenseteamsDescDefenseHeroes is the schema descriptor for defense_heroes field. epicgvgdefenseteamsDescDefenseHeroes := epicgvgdefenseteamsFields[1].Descriptor() // epicgvgdefenseteams.DefenseHeroesValidator is a validator for the "defense_heroes" field. It is called by the builders before save. epicgvgdefenseteams.DefenseHeroesValidator = epicgvgdefenseteamsDescDefenseHeroes.Validators[0].(func(string) error) // epicgvgdefenseteamsDescCreator is the schema descriptor for creator field. epicgvgdefenseteamsDescCreator := epicgvgdefenseteamsFields[2].Descriptor() // epicgvgdefenseteams.CreatorValidator is a validator for the "creator" field. It is called by the builders before save. epicgvgdefenseteams.CreatorValidator = epicgvgdefenseteamsDescCreator.Validators[0].(func(string) error) // epicgvgdefenseteamsDescUpdater is the schema descriptor for updater field. epicgvgdefenseteamsDescUpdater := epicgvgdefenseteamsFields[4].Descriptor() // epicgvgdefenseteams.UpdaterValidator is a validator for the "updater" field. It is called by the builders before save. epicgvgdefenseteams.UpdaterValidator = epicgvgdefenseteamsDescUpdater.Validators[0].(func(string) error) epicheroinfoFields := entity.EpicHeroInfo{}.Fields() _ = epicheroinfoFields // epicheroinfoDescHeroName is the schema descriptor for hero_name field. epicheroinfoDescHeroName := epicheroinfoFields[1].Descriptor() // epicheroinfo.HeroNameValidator is a validator for the "hero_name" field. It is called by the builders before save. epicheroinfo.HeroNameValidator = epicheroinfoDescHeroName.Validators[0].(func(string) error) // epicheroinfoDescHeroCode is the schema descriptor for hero_code field. epicheroinfoDescHeroCode := epicheroinfoFields[2].Descriptor() // epicheroinfo.HeroCodeValidator is a validator for the "hero_code" field. It is called by the builders before save. epicheroinfo.HeroCodeValidator = epicheroinfoDescHeroCode.Validators[0].(func(string) error) // epicheroinfoDescHeroAttrLv60 is the schema descriptor for hero_attr_lv60 field. epicheroinfoDescHeroAttrLv60 := epicheroinfoFields[3].Descriptor() // epicheroinfo.HeroAttrLv60Validator is a validator for the "hero_attr_lv60" field. It is called by the builders before save. epicheroinfo.HeroAttrLv60Validator = epicheroinfoDescHeroAttrLv60.Validators[0].(func(string) error) // epicheroinfoDescCreator is the schema descriptor for creator field. epicheroinfoDescCreator := epicheroinfoFields[4].Descriptor() // epicheroinfo.CreatorValidator is a validator for the "creator" field. It is called by the builders before save. epicheroinfo.CreatorValidator = epicheroinfoDescCreator.Validators[0].(func(string) error) // epicheroinfoDescUpdater is the schema descriptor for updater field. epicheroinfoDescUpdater := epicheroinfoFields[6].Descriptor() // epicheroinfo.UpdaterValidator is a validator for the "updater" field. It is called by the builders before save. epicheroinfo.UpdaterValidator = epicheroinfoDescUpdater.Validators[0].(func(string) error) // epicheroinfoDescNickName is the schema descriptor for nick_name field. epicheroinfoDescNickName := epicheroinfoFields[9].Descriptor() // epicheroinfo.NickNameValidator is a validator for the "nick_name" field. It is called by the builders before save. epicheroinfo.NickNameValidator = epicheroinfoDescNickName.Validators[0].(func(string) error) // epicheroinfoDescRarity is the schema descriptor for rarity field. epicheroinfoDescRarity := epicheroinfoFields[10].Descriptor() // epicheroinfo.RarityValidator is a validator for the "rarity" field. It is called by the builders before save. epicheroinfo.RarityValidator = epicheroinfoDescRarity.Validators[0].(func(string) error) // epicheroinfoDescRole is the schema descriptor for role field. epicheroinfoDescRole := epicheroinfoFields[11].Descriptor() // epicheroinfo.RoleValidator is a validator for the "role" field. It is called by the builders before save. epicheroinfo.RoleValidator = epicheroinfoDescRole.Validators[0].(func(string) error) // epicheroinfoDescZodiac is the schema descriptor for zodiac field. epicheroinfoDescZodiac := epicheroinfoFields[12].Descriptor() // epicheroinfo.ZodiacValidator is a validator for the "zodiac" field. It is called by the builders before save. epicheroinfo.ZodiacValidator = epicheroinfoDescZodiac.Validators[0].(func(string) error) // epicheroinfoDescHeadImgURL is the schema descriptor for head_img_url field. epicheroinfoDescHeadImgURL := epicheroinfoFields[13].Descriptor() // epicheroinfo.HeadImgURLValidator is a validator for the "head_img_url" field. It is called by the builders before save. epicheroinfo.HeadImgURLValidator = epicheroinfoDescHeadImgURL.Validators[0].(func(string) error) // epicheroinfoDescAttribute is the schema descriptor for attribute field. epicheroinfoDescAttribute := epicheroinfoFields[14].Descriptor() // epicheroinfo.AttributeValidator is a validator for the "attribute" field. It is called by the builders before save. epicheroinfo.AttributeValidator = epicheroinfoDescAttribute.Validators[0].(func(string) error) // epicheroinfoDescRemark is the schema descriptor for remark field. epicheroinfoDescRemark := epicheroinfoFields[15].Descriptor() // epicheroinfo.RemarkValidator is a validator for the "remark" field. It is called by the builders before save. epicheroinfo.RemarkValidator = epicheroinfoDescRemark.Validators[0].(func(string) error) // epicheroinfoDescRawJSON is the schema descriptor for raw_json field. epicheroinfoDescRawJSON := epicheroinfoFields[16].Descriptor() // epicheroinfo.RawJSONValidator is a validator for the "raw_json" field. It is called by the builders before save. epicheroinfo.RawJSONValidator = epicheroinfoDescRawJSON.Validators[0].(func(string) error) // epicheroinfoDescContentJSONSet is the schema descriptor for content_json_set field. epicheroinfoDescContentJSONSet := epicheroinfoFields[17].Descriptor() // epicheroinfo.ContentJSONSetValidator is a validator for the "content_json_set" field. It is called by the builders before save. epicheroinfo.ContentJSONSetValidator = epicheroinfoDescContentJSONSet.Validators[0].(func(string) error) epicherouserbuildFields := entity.EpicHeroUserBuild{}.Fields() _ = epicherouserbuildFields // epicherouserbuildDescArtifactCode is the schema descriptor for artifact_code field. epicherouserbuildDescArtifactCode := epicherouserbuildFields[1].Descriptor() // epicherouserbuild.ArtifactCodeValidator is a validator for the "artifact_code" field. It is called by the builders before save. epicherouserbuild.ArtifactCodeValidator = epicherouserbuildDescArtifactCode.Validators[0].(func(string) error) // epicherouserbuildDescHeroCode is the schema descriptor for hero_code field. epicherouserbuildDescHeroCode := epicherouserbuildFields[2].Descriptor() // epicherouserbuild.HeroCodeValidator is a validator for the "hero_code" field. It is called by the builders before save. epicherouserbuild.HeroCodeValidator = epicherouserbuildDescHeroCode.Validators[0].(func(string) error) // epicherouserbuildDescCreator is the schema descriptor for creator field. epicherouserbuildDescCreator := epicherouserbuildFields[6].Descriptor() // epicherouserbuild.CreatorValidator is a validator for the "creator" field. It is called by the builders before save. epicherouserbuild.CreatorValidator = epicherouserbuildDescCreator.Validators[0].(func(string) error) // epicherouserbuildDescUpdater is the schema descriptor for updater field. epicherouserbuildDescUpdater := epicherouserbuildFields[8].Descriptor() // epicherouserbuild.UpdaterValidator is a validator for the "updater" field. It is called by the builders before save. epicherouserbuild.UpdaterValidator = epicherouserbuildDescUpdater.Validators[0].(func(string) error) epici18nmappingsFields := entity.EpicI18NMappings{}.Fields() _ = epici18nmappingsFields // epici18nmappingsDescKeyName is the schema descriptor for key_name field. epici18nmappingsDescKeyName := epici18nmappingsFields[1].Descriptor() // epici18nmappings.KeyNameValidator is a validator for the "key_name" field. It is called by the builders before save. epici18nmappings.KeyNameValidator = epici18nmappingsDescKeyName.Validators[0].(func(string) error) // epici18nmappingsDescLanguage is the schema descriptor for language field. epici18nmappingsDescLanguage := epici18nmappingsFields[2].Descriptor() // epici18nmappings.LanguageValidator is a validator for the "language" field. It is called by the builders before save. epici18nmappings.LanguageValidator = epici18nmappingsDescLanguage.Validators[0].(func(string) error) // epici18nmappingsDescValue is the schema descriptor for value field. epici18nmappingsDescValue := epici18nmappingsFields[3].Descriptor() // epici18nmappings.ValueValidator is a validator for the "value" field. It is called by the builders before save. epici18nmappings.ValueValidator = epici18nmappingsDescValue.Validators[0].(func(string) error) // epici18nmappingsDescCategory is the schema descriptor for category field. epici18nmappingsDescCategory := epici18nmappingsFields[4].Descriptor() // epici18nmappings.CategoryValidator is a validator for the "category" field. It is called by the builders before save. epici18nmappings.CategoryValidator = epici18nmappingsDescCategory.Validators[0].(func(string) error) // epici18nmappingsDescCreator is the schema descriptor for creator field. epici18nmappingsDescCreator := epici18nmappingsFields[6].Descriptor() // epici18nmappings.CreatorValidator is a validator for the "creator" field. It is called by the builders before save. epici18nmappings.CreatorValidator = epici18nmappingsDescCreator.Validators[0].(func(string) error) // epici18nmappingsDescUpdater is the schema descriptor for updater field. epici18nmappingsDescUpdater := epici18nmappingsFields[8].Descriptor() // epici18nmappings.UpdaterValidator is a validator for the "updater" field. It is called by the builders before save. epici18nmappings.UpdaterValidator = epici18nmappingsDescUpdater.Validators[0].(func(string) error) // epici18nmappingsDescCode is the schema descriptor for code field. epici18nmappingsDescCode := epici18nmappingsFields[11].Descriptor() // epici18nmappings.CodeValidator is a validator for the "code" field. It is called by the builders before save. epici18nmappings.CodeValidator = epici18nmappingsDescCode.Validators[0].(func(string) error) fribbleherosetFields := entity.FribbleHeroSet{}.Fields() _ = fribbleherosetFields // fribbleherosetDescHeroCode is the schema descriptor for hero_code field. fribbleherosetDescHeroCode := fribbleherosetFields[1].Descriptor() // fribbleheroset.HeroCodeValidator is a validator for the "hero_code" field. It is called by the builders before save. fribbleheroset.HeroCodeValidator = fribbleherosetDescHeroCode.Validators[0].(func(string) error) // fribbleherosetDescJSONContent is the schema descriptor for json_content field. fribbleherosetDescJSONContent := fribbleherosetFields[2].Descriptor() // fribbleheroset.JSONContentValidator is a validator for the "json_content" field. It is called by the builders before save. fribbleheroset.JSONContentValidator = fribbleherosetDescJSONContent.Validators[0].(func(string) error) // fribbleherosetDescHeroName is the schema descriptor for hero_name field. fribbleherosetDescHeroName := fribbleherosetFields[3].Descriptor() // fribbleheroset.HeroNameValidator is a validator for the "hero_name" field. It is called by the builders before save. fribbleheroset.HeroNameValidator = fribbleherosetDescHeroName.Validators[0].(func(string) error) // fribbleherosetDescCreator is the schema descriptor for creator field. fribbleherosetDescCreator := fribbleherosetFields[4].Descriptor() // fribbleheroset.CreatorValidator is a validator for the "creator" field. It is called by the builders before save. fribbleheroset.CreatorValidator = fribbleherosetDescCreator.Validators[0].(func(string) error) // fribbleherosetDescUpdater is the schema descriptor for updater field. fribbleherosetDescUpdater := fribbleherosetFields[6].Descriptor() // fribbleheroset.UpdaterValidator is a validator for the "updater" field. It is called by the builders before save. fribbleheroset.UpdaterValidator = fribbleherosetDescUpdater.Validators[0].(func(string) error) gearsetinfoFields := entity.GearSetInfo{}.Fields() _ = gearsetinfoFields // gearsetinfoDescGearType is the schema descriptor for gear_type field. gearsetinfoDescGearType := gearsetinfoFields[4].Descriptor() // gearsetinfo.GearTypeValidator is a validator for the "gear_type" field. It is called by the builders before save. gearsetinfo.GearTypeValidator = gearsetinfoDescGearType.Validators[0].(func(string) error) // gearsetinfoDescGearSetType is the schema descriptor for gear_set_type field. gearsetinfoDescGearSetType := gearsetinfoFields[5].Descriptor() // gearsetinfo.GearSetTypeValidator is a validator for the "gear_set_type" field. It is called by the builders before save. gearsetinfo.GearSetTypeValidator = gearsetinfoDescGearSetType.Validators[0].(func(string) error) // gearsetinfoDescMainStatType is the schema descriptor for main_stat_type field. gearsetinfoDescMainStatType := gearsetinfoFields[6].Descriptor() // gearsetinfo.MainStatTypeValidator is a validator for the "main_stat_type" field. It is called by the builders before save. gearsetinfo.MainStatTypeValidator = gearsetinfoDescMainStatType.Validators[0].(func(string) error) // gearsetinfoDescSubStatOneType is the schema descriptor for sub_stat_one_type field. gearsetinfoDescSubStatOneType := gearsetinfoFields[8].Descriptor() // gearsetinfo.SubStatOneTypeValidator is a validator for the "sub_stat_one_type" field. It is called by the builders before save. gearsetinfo.SubStatOneTypeValidator = gearsetinfoDescSubStatOneType.Validators[0].(func(string) error) // gearsetinfoDescSubStatTwoType is the schema descriptor for sub_stat_two_type field. gearsetinfoDescSubStatTwoType := gearsetinfoFields[10].Descriptor() // gearsetinfo.SubStatTwoTypeValidator is a validator for the "sub_stat_two_type" field. It is called by the builders before save. gearsetinfo.SubStatTwoTypeValidator = gearsetinfoDescSubStatTwoType.Validators[0].(func(string) error) // gearsetinfoDescSubStatThreeType is the schema descriptor for sub_stat_three_type field. gearsetinfoDescSubStatThreeType := gearsetinfoFields[12].Descriptor() // gearsetinfo.SubStatThreeTypeValidator is a validator for the "sub_stat_three_type" field. It is called by the builders before save. gearsetinfo.SubStatThreeTypeValidator = gearsetinfoDescSubStatThreeType.Validators[0].(func(string) error) // gearsetinfoDescSubStatFourType is the schema descriptor for sub_stat_four_type field. gearsetinfoDescSubStatFourType := gearsetinfoFields[14].Descriptor() // gearsetinfo.SubStatFourTypeValidator is a validator for the "sub_stat_four_type" field. It is called by the builders before save. gearsetinfo.SubStatFourTypeValidator = gearsetinfoDescSubStatFourType.Validators[0].(func(string) error) // gearsetinfoDescAccountCode is the schema descriptor for account_code field. gearsetinfoDescAccountCode := gearsetinfoFields[16].Descriptor() // gearsetinfo.AccountCodeValidator is a validator for the "account_code" field. It is called by the builders before save. gearsetinfo.AccountCodeValidator = gearsetinfoDescAccountCode.Validators[0].(func(string) error) // gearsetinfoDescCreator is the schema descriptor for creator field. gearsetinfoDescCreator := gearsetinfoFields[17].Descriptor() // gearsetinfo.CreatorValidator is a validator for the "creator" field. It is called by the builders before save. gearsetinfo.CreatorValidator = gearsetinfoDescCreator.Validators[0].(func(string) error) // gearsetinfoDescUpdater is the schema descriptor for updater field. gearsetinfoDescUpdater := gearsetinfoFields[19].Descriptor() // gearsetinfo.UpdaterValidator is a validator for the "updater" field. It is called by the builders before save. gearsetinfo.UpdaterValidator = gearsetinfoDescUpdater.Validators[0].(func(string) error) }