Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Conversation

@crossgit
Copy link

Ifeq{"a",param,""}

if param=""{
return "" ,[]
}
return "a=?",[param]

Iflike{"b",param,""}

if param=""{
return "",[]
}
return "a like ?" ,["%"+param+"%"]

cond_iflike.go Outdated
// IsValid tests if this condition is valid
func (iflike Iflike) IsValid() bool {
if len(iflike[0]) > 0 && len(iflike[1]) > 0 {
if iflike[1] == iflike[2] {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S1008: should use 'return ' instead of 'if { return }; return ' (from gosimple)

@lunny lunny mentioned this pull request Apr 22, 2019
@lunny lunny closed this Apr 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants