github.com/gogf/gf/v2@v2.7.4/util/gvalid/internal/builtin/builtin_ci.go (about)

     1  // Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
     2  //
     3  // This Source Code Form is subject to the terms of the MIT License.
     4  // If a copy of the MIT was not distributed with this file,
     5  // You can obtain one at https://github.com/gogf/gf.
     6  
     7  package builtin
     8  
     9  // RuleCi implements `ci` rule:
    10  // Case-Insensitive configuration for those rules that need value comparison like:
    11  // same, different, in, not-in, etc.
    12  //
    13  // Format: ci
    14  type RuleCi struct{}
    15  
    16  func init() {
    17  	Register(RuleCi{})
    18  }
    19  
    20  func (r RuleCi) Name() string {
    21  	return "ci"
    22  }
    23  
    24  func (r RuleCi) Message() string {
    25  	return ""
    26  }
    27  
    28  func (r RuleCi) Run(in RunInput) error {
    29  	return nil
    30  }