代码拉取完成,页面将自动刷新
// Code generated by go-enum DO NOT EDIT.
// Version:
// Revision:
// Build Date:
// Built By:
package fate
import (
"errors"
"fmt"
)
const (
// CharacterFilterTypeDefault is a CharacterFilterType of type Default.
CharacterFilterTypeDefault CharacterFilterType = iota
// CharacterFilterTypeChs is a CharacterFilterType of type Chs.
CharacterFilterTypeChs
// CharacterFilterTypeCht is a CharacterFilterType of type Cht.
CharacterFilterTypeCht
// CharacterFilterTypeKangxi is a CharacterFilterType of type Kangxi.
CharacterFilterTypeKangxi
)
var ErrInvalidCharacterFilterType = errors.New("not a valid CharacterFilterType")
const _CharacterFilterTypeName = "defaultchschtkangxi"
var _CharacterFilterTypeMap = map[CharacterFilterType]string{
CharacterFilterTypeDefault: _CharacterFilterTypeName[0:7],
CharacterFilterTypeChs: _CharacterFilterTypeName[7:10],
CharacterFilterTypeCht: _CharacterFilterTypeName[10:13],
CharacterFilterTypeKangxi: _CharacterFilterTypeName[13:19],
}
// String implements the Stringer interface.
func (x CharacterFilterType) String() string {
if str, ok := _CharacterFilterTypeMap[x]; ok {
return str
}
return fmt.Sprintf("CharacterFilterType(%d)", x)
}
var _CharacterFilterTypeValue = map[string]CharacterFilterType{
_CharacterFilterTypeName[0:7]: CharacterFilterTypeDefault,
_CharacterFilterTypeName[7:10]: CharacterFilterTypeChs,
_CharacterFilterTypeName[10:13]: CharacterFilterTypeCht,
_CharacterFilterTypeName[13:19]: CharacterFilterTypeKangxi,
}
// ParseCharacterFilterType attempts to convert a string to a CharacterFilterType.
func ParseCharacterFilterType(name string) (CharacterFilterType, error) {
if x, ok := _CharacterFilterTypeValue[name]; ok {
return x, nil
}
return CharacterFilterType(0), fmt.Errorf("%s is %w", name, ErrInvalidCharacterFilterType)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。