本文整理汇总了Golang中github.com/pquerna/ffjson/fflib/v1.EqualFoldRight函数的典型用法代码示例。如果您正苦于以下问题:Golang EqualFoldRight函数的具体用法?Golang EqualFoldRight怎么用?Golang EqualFoldRight使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了EqualFoldRight函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: UnmarshalJSONFFLexer
func (uj *DrawList) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_DrawListbase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_DrawListno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'b':
if bytes.Equal(ffj_key_DrawList_BG, kn) {
currentKey = ffj_t_DrawList_BG
state = fflib.FFParse_want_colon
goto mainparse
}
case 'c':
if bytes.Equal(ffj_key_DrawList_CPP, kn) {
currentKey = ffj_t_DrawList_CPP
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_DrawList_CpPreyPop, kn) {
currentKey = ffj_t_DrawList_CpPreyPop
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_DrawList_TurnCount, kn) {
currentKey = ffj_t_DrawList_TurnCount
state = fflib.FFParse_want_colon
goto mainparse
}
case 'v':
if bytes.Equal(ffj_key_DrawList_VP, kn) {
currentKey = ffj_t_DrawList_VP
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_DrawList_VpPop, kn) {
currentKey = ffj_t_DrawList_VpPop
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_DrawList_TurnCount, kn) {
currentKey = ffj_t_DrawList_TurnCount
//.........这里部分代码省略.........
示例2: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDCODE, kn) {
currentKey = ffj_t_TCARD_CARDCODE
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDZJZT, kn) {
currentKey = ffj_t_TCARD_CARDZJZT
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDZJFF, kn) {
currentKey = ffj_t_TCARD_CARDZJFF
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDZJNX, kn) {
currentKey = ffj_t_TCARD_CARDZJNX
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_CARDNAME, kn) {
currentKey = ffj_t_TCARD_CARDNAME
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_TCARD_ZCLBLINK, kn) {
currentKey = ffj_t_TCARD_ZCLBLINK
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_ZCLBNAME, kn) {
currentKey = ffj_t_TCARD_ZCLBNAME
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_TCARD_ZCLBTYPE, kn) {
currentKey = ffj_t_TCARD_ZCLBTYPE
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_TCARD_SORTLINK, kn) {
currentKey = ffj_t_TCARD_SORTLINK
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_TCARD_SORTNAME, kn) {
currentKey = ffj_t_TCARD_SORTNAME
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_TCARD_SORTTYPE, kn) {
currentKey = ffj_t_TCARD_SORTTYPE
state = fflib.FFParse_want_colon
示例3: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
currentKey = ffj_t_JsonOffer_Id
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_JsonOffer_Account, kn) {
currentKey = ffj_t_JsonOffer_Account
state = fflib.FFParse_want_colon
goto mainparse
}
case 's':
if bytes.Equal(ffj_key_JsonOffer_Salary, kn) {
currentKey = ffj_t_JsonOffer_Salary
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_JsonOffer_PartialTime, kn) {
currentKey = ffj_t_JsonOffer_PartialTime
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_JsonOffer_HTML, kn) {
currentKey = ffj_t_JsonOffer_HTML
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_JsonOffer_Account, kn) {
currentKey = ffj_t_JsonOffer_Account
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_JsonOffer_HTML, kn) {
currentKey = ffj_t_JsonOffer_HTML
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_JsonOffer_Locations, kn) {
currentKey = ffj_t_JsonOffer_Locations
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_JsonOffer_Location, kn) {
currentKey = ffj_t_JsonOffer_Location
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_JsonOffer_PartialTime, kn) {
currentKey = ffj_t_JsonOffer_PartialTime
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_JsonOffer_Salary, kn) {
currentKey = ffj_t_JsonOffer_Salary
state = fflib.FFParse_want_colon
示例4: UnmarshalJSONFFLexer
func (uj *response) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_responsebase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_responseno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'e':
if bytes.Equal(ffj_key_response_ErrorCodes, kn) {
currentKey = ffj_t_response_ErrorCodes
state = fflib.FFParse_want_colon
goto mainparse
}
case 's':
if bytes.Equal(ffj_key_response_Success, kn) {
currentKey = ffj_t_response_Success
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_response_ErrorCodes, kn) {
currentKey = ffj_t_response_ErrorCodes
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_response_Success, kn) {
currentKey = ffj_t_response_Success
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_responseno_such_key
state = fflib.FFParse_want_colon
goto mainparse
}
case fflib.FFParse_want_colon:
if tok != fflib.FFTok_colon {
wantedTok = fflib.FFTok_colon
goto wrongtokenerror
}
state = fflib.FFParse_want_value
continue
case fflib.FFParse_want_value:
if tok == fflib.FFTok_left_brace || tok == fflib.FFTok_left_bracket || tok == fflib.FFTok_integer || tok == fflib.FFTok_double || tok == fflib.FFTok_string || tok == fflib.FFTok_bool || tok == fflib.FFTok_null {
switch currentKey {
//.........这里部分代码省略.........
示例5: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
}
case 's':
if bytes.Equal(ffj_key_Character_Stats, kn) {
currentKey = ffj_t_Character_Stats
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_Character_TitleID, kn) {
currentKey = ffj_t_Character_TitleID
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Character_Times, kn) {
currentKey = ffj_t_Character_Times
state = fflib.FFParse_want_colon
goto mainparse
}
case 'w':
if bytes.Equal(ffj_key_Character_World, kn) {
currentKey = ffj_t_Character_World
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_Character_LastUpdated, kn) {
currentKey = ffj_t_Character_LastUpdated
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Character_Expires, kn) {
currentKey = ffj_t_Character_Expires
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Character_Error, kn) {
currentKey = ffj_t_Character_Error
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Character_World, kn) {
currentKey = ffj_t_Character_World
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Character_FriendsList, kn) {
currentKey = ffj_t_Character_FriendsList
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Character_Items, kn) {
currentKey = ffj_t_Character_Items
state = fflib.FFParse_want_colon
示例6: UnmarshalJSONFFLexer
func (uj *ProcessList) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_ProcessListbase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_ProcessListno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'A':
if bytes.Equal(ffj_key_ProcessList_AnyTypes, kn) {
currentKey = ffj_t_ProcessList_AnyTypes
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_ProcessList_AnyTypes, kn) {
currentKey = ffj_t_ProcessList_AnyTypes
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_ProcessListno_such_key
state = fflib.FFParse_want_colon
goto mainparse
}
case fflib.FFParse_want_colon:
if tok != fflib.FFTok_colon {
wantedTok = fflib.FFTok_colon
goto wrongtokenerror
}
state = fflib.FFParse_want_value
continue
case fflib.FFParse_want_value:
if tok == fflib.FFTok_left_brace || tok == fflib.FFTok_left_bracket || tok == fflib.FFTok_integer || tok == fflib.FFTok_double || tok == fflib.FFTok_string || tok == fflib.FFTok_bool || tok == fflib.FFTok_null {
switch currentKey {
case ffj_t_ProcessList_AnyTypes:
goto handle_AnyTypes
case ffj_t_ProcessListno_such_key:
err = fs.SkipField(tok)
if err != nil {
return fs.WrapErr(err)
}
state = fflib.FFParse_after_value
goto mainparse
}
} else {
goto wantedvalue
//.........这里部分代码省略.........
示例7: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
case 's':
if bytes.Equal(ffj_key_Incident_Status, kn) {
currentKey = ffj_t_Incident_Status
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Incident_Service, kn) {
currentKey = ffj_t_Incident_Service
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Incident_SubService, kn) {
currentKey = ffj_t_Incident_SubService
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_Incident_Time, kn) {
currentKey = ffj_t_Incident_Time
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Incident_Tags, kn) {
currentKey = ffj_t_Incident_Tags
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_Incident_Tags, kn) {
currentKey = ffj_t_Incident_Tags
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Incident_Metric, kn) {
currentKey = ffj_t_Incident_Metric
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Incident_SubService, kn) {
currentKey = ffj_t_Incident_SubService
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Incident_Service, kn) {
currentKey = ffj_t_Incident_Service
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Incident_Host, kn) {
currentKey = ffj_t_Incident_Host
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Incident_Status, kn) {
currentKey = ffj_t_Incident_Status
state = fflib.FFParse_want_colon
示例8: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
currentKey = ffj_t_State_Pid
state = fflib.FFParse_want_colon
goto mainparse
}
case 'v':
if bytes.Equal(ffj_key_State_Version, kn) {
currentKey = ffj_t_State_Version
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_State_BundlePath, kn) {
currentKey = ffj_t_State_BundlePath
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_State_Pid, kn) {
currentKey = ffj_t_State_Pid
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_State_ID, kn) {
currentKey = ffj_t_State_ID
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_State_Version, kn) {
currentKey = ffj_t_State_Version
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_Stateno_such_key
state = fflib.FFParse_want_colon
goto mainparse
}
case fflib.FFParse_want_colon:
if tok != fflib.FFTok_colon {
wantedTok = fflib.FFTok_colon
goto wrongtokenerror
}
state = fflib.FFParse_want_value
continue
case fflib.FFParse_want_value:
if tok == fflib.FFTok_left_brace || tok == fflib.FFTok_left_bracket || tok == fflib.FFTok_integer || tok == fflib.FFTok_double || tok == fflib.FFTok_string || tok == fflib.FFTok_bool || tok == fflib.FFTok_null {
switch currentKey {
case ffj_t_State_Version:
goto handle_Version
case ffj_t_State_ID:
goto handle_ID
case ffj_t_State_Pid:
goto handle_Pid
case ffj_t_State_BundlePath:
示例9: UnmarshalJSONFFLexer
func (uj *Event) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_Eventbase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_Eventno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'P':
if bytes.Equal(ffj_key_Event_Payload, kn) {
currentKey = ffj_t_Event_Payload
state = fflib.FFParse_want_colon
goto mainparse
}
case 's':
if bytes.Equal(ffj_key_Event_Service, kn) {
currentKey = ffj_t_Event_Service
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_Event_Type, kn) {
currentKey = ffj_t_Event_Type
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_Event_Type, kn) {
currentKey = ffj_t_Event_Type
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Event_Service, kn) {
currentKey = ffj_t_Event_Service
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Event_Payload, kn) {
currentKey = ffj_t_Event_Payload
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_Eventno_such_key
state = fflib.FFParse_want_colon
//.........这里部分代码省略.........
示例10: UnmarshalJSONFFLexer
func (uj *JSONError) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error {
var err error = nil
currentKey := ffj_t_JSONErrorbase
_ = currentKey
tok := fflib.FFTok_init
wantedTok := fflib.FFTok_init
mainparse:
for {
tok = fs.Scan()
// println(fmt.Sprintf("debug: tok: %v state: %v", tok, state))
if tok == fflib.FFTok_error {
goto tokerror
}
switch state {
case fflib.FFParse_map_start:
if tok != fflib.FFTok_left_bracket {
wantedTok = fflib.FFTok_left_bracket
goto wrongtokenerror
}
state = fflib.FFParse_want_key
continue
case fflib.FFParse_after_value:
if tok == fflib.FFTok_comma {
state = fflib.FFParse_want_key
} else if tok == fflib.FFTok_right_bracket {
goto done
} else {
wantedTok = fflib.FFTok_comma
goto wrongtokenerror
}
case fflib.FFParse_want_key:
// json {} ended. goto exit. woo.
if tok == fflib.FFTok_right_bracket {
goto done
}
if tok != fflib.FFTok_string {
wantedTok = fflib.FFTok_string
goto wrongtokenerror
}
kn := fs.Output.Bytes()
if len(kn) <= 0 {
// "" case. hrm.
currentKey = ffj_t_JSONErrorno_such_key
state = fflib.FFParse_want_colon
goto mainparse
} else {
switch kn[0] {
case 'c':
if bytes.Equal(ffj_key_JSONError_Code, kn) {
currentKey = ffj_t_JSONError_Code
state = fflib.FFParse_want_colon
goto mainparse
}
case 'm':
if bytes.Equal(ffj_key_JSONError_Message, kn) {
currentKey = ffj_t_JSONError_Message
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_JSONError_MoreInfo, kn) {
currentKey = ffj_t_JSONError_MoreInfo
state = fflib.FFParse_want_colon
goto mainparse
}
case 's':
if bytes.Equal(ffj_key_JSONError_Status, kn) {
currentKey = ffj_t_JSONError_Status
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_JSONError_Type, kn) {
currentKey = ffj_t_JSONError_Type
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_JSONError_MoreInfo, kn) {
currentKey = ffj_t_JSONError_MoreInfo
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_JSONError_Message, kn) {
//.........这里部分代码省略.........
示例11: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
if bytes.Equal(ffj_key_Handtekening_Straat, kn) {
currentKey = ffj_t_Handtekening_Straat
state = fflib.FFParse_want_colon
goto mainparse
}
case 't':
if bytes.Equal(ffj_key_Handtekening_Tussenvoegsel, kn) {
currentKey = ffj_t_Handtekening_Tussenvoegsel
state = fflib.FFParse_want_colon
goto mainparse
}
case 'v':
if bytes.Equal(ffj_key_Handtekening_Voornaam, kn) {
currentKey = ffj_t_Handtekening_Voornaam
state = fflib.FFParse_want_colon
goto mainparse
}
case 'w':
if bytes.Equal(ffj_key_Handtekening_Woonplaats, kn) {
currentKey = ffj_t_Handtekening_Woonplaats
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_Handtekening_CaptchaResponse, kn) {
currentKey = ffj_t_Handtekening_CaptchaResponse
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Handtekening_Email, kn) {
currentKey = ffj_t_Handtekening_Email
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Handtekening_Handtekening, kn) {
currentKey = ffj_t_Handtekening_Handtekening
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Handtekening_Woonplaats, kn) {
currentKey = ffj_t_Handtekening_Woonplaats
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Handtekening_Postcode, kn) {
currentKey = ffj_t_Handtekening_Postcode
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Handtekening_Huisnummer, kn) {
currentKey = ffj_t_Handtekening_Huisnummer
state = fflib.FFParse_want_colon
示例12: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
case 't':
if bytes.Equal(ffj_key_Fingerprint_Timestamp, kn) {
currentKey = ffj_t_Fingerprint_Timestamp
state = fflib.FFParse_want_colon
goto mainparse
}
case 'u':
if bytes.Equal(ffj_key_Fingerprint_Username, kn) {
currentKey = ffj_t_Fingerprint_Username
state = fflib.FFParse_want_colon
goto mainparse
}
case 'w':
if bytes.Equal(ffj_key_Fingerprint_WifiFingerprint, kn) {
currentKey = ffj_t_Fingerprint_WifiFingerprint
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.AsciiEqualFold(ffj_key_Fingerprint_WifiFingerprint, kn) {
currentKey = ffj_t_Fingerprint_WifiFingerprint
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Fingerprint_Timestamp, kn) {
currentKey = ffj_t_Fingerprint_Timestamp
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Fingerprint_Location, kn) {
currentKey = ffj_t_Fingerprint_Location
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Fingerprint_Username, kn) {
currentKey = ffj_t_Fingerprint_Username
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Fingerprint_Group, kn) {
currentKey = ffj_t_Fingerprint_Group
state = fflib.FFParse_want_colon
goto mainparse
}
currentKey = ffj_t_Fingerprintno_such_key
state = fflib.FFParse_want_colon
goto mainparse
}
case fflib.FFParse_want_colon:
if tok != fflib.FFTok_colon {
wantedTok = fflib.FFTok_colon
goto wrongtokenerror
示例13: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
currentKey = ffj_t_ClientEntry_ClientID
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_ClientEntry_ClientSecret, kn) {
currentKey = ffj_t_ClientEntry_ClientSecret
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_ClientEntry_ClientType, kn) {
currentKey = ffj_t_ClientEntry_ClientType
state = fflib.FFParse_want_colon
goto mainparse
}
case 'j':
if bytes.Equal(ffj_key_ClientEntry_JavascriptOrigins, kn) {
currentKey = ffj_t_ClientEntry_JavascriptOrigins
state = fflib.FFParse_want_colon
goto mainparse
}
case 'r':
if bytes.Equal(ffj_key_ClientEntry_RedirectUris, kn) {
currentKey = ffj_t_ClientEntry_RedirectUris
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_ClientEntry_AllowedScopes, kn) {
currentKey = ffj_t_ClientEntry_AllowedScopes
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_ClientEntry_AllowedGrants, kn) {
currentKey = ffj_t_ClientEntry_AllowedGrants
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_ClientEntry_JavascriptOrigins, kn) {
currentKey = ffj_t_ClientEntry_JavascriptOrigins
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_ClientEntry_RedirectUris, kn) {
currentKey = ffj_t_ClientEntry_RedirectUris
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_ClientEntry_ClientType, kn) {
currentKey = ffj_t_ClientEntry_ClientType
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_ClientEntry_ClientSecret, kn) {
currentKey = ffj_t_ClientEntry_ClientSecret
state = fflib.FFParse_want_colon
示例14: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
state = fflib.FFParse_want_colon
goto mainparse
} else if bytes.Equal(ffj_key_Event_TopicID, kn) {
currentKey = ffj_t_Event_TopicID
state = fflib.FFParse_want_colon
goto mainparse
}
case 'u':
if bytes.Equal(ffj_key_Event_Username, kn) {
currentKey = ffj_t_Event_Username
state = fflib.FFParse_want_colon
goto mainparse
}
case 'v':
if bytes.Equal(ffj_key_Event_VoteMask, kn) {
currentKey = ffj_t_Event_VoteMask
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.SimpleLetterEqualFold(ffj_key_Event_Error, kn) {
currentKey = ffj_t_Event_Error
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Event_VoteMask, kn) {
currentKey = ffj_t_Event_VoteMask
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Event_OptionB, kn) {
currentKey = ffj_t_Event_OptionB
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Event_OptionA, kn) {
currentKey = ffj_t_Event_OptionA
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.AsciiEqualFold(ffj_key_Event_TopicID, kn) {
currentKey = ffj_t_Event_TopicID
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Event_Text, kn) {
currentKey = ffj_t_Event_Text
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Event_Color, kn) {
currentKey = ffj_t_Event_Color
state = fflib.FFParse_want_colon
示例15: UnmarshalJSONFFLexer
//.........这里部分代码省略.........
if bytes.Equal(ffj_key_Collection_Hidden, kn) {
currentKey = ffj_t_Collection_Hidden
state = fflib.FFParse_want_colon
goto mainparse
}
case 'N':
if bytes.Equal(ffj_key_Collection_Name, kn) {
currentKey = ffj_t_Collection_Name
state = fflib.FFParse_want_colon
goto mainparse
}
case 'R':
if bytes.Equal(ffj_key_Collection_ResolveList, kn) {
currentKey = ffj_t_Collection_ResolveList
state = fflib.FFParse_want_colon
goto mainparse
}
case 'U':
if bytes.Equal(ffj_key_Collection_UnknownCount, kn) {
currentKey = ffj_t_Collection_UnknownCount
state = fflib.FFParse_want_colon
goto mainparse
}
}
if fflib.EqualFoldRight(ffj_key_Collection_ResolveList, kn) {
currentKey = ffj_t_Collection_ResolveList
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Collection_Name, kn) {
currentKey = ffj_t_Collection_Name
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Collection_Hidden, kn) {
currentKey = ffj_t_Collection_Hidden
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.EqualFoldRight(ffj_key_Collection_UnknownCount, kn) {
currentKey = ffj_t_Collection_UnknownCount
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Collection_Dynamic, kn) {
currentKey = ffj_t_Collection_Dynamic
state = fflib.FFParse_want_colon
goto mainparse
}
if fflib.SimpleLetterEqualFold(ffj_key_Collection_Count, kn) {
currentKey = ffj_t_Collection_Count
state = fflib.FFParse_want_colon