Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MethodByName (0.08 sec)

  1. schema/schema.go

    	case callbackTypeAfterSave:
    		return modelType.MethodByName(string(callbackTypeAfterSave))
    	case callbackTypeBeforeDelete:
    		return modelType.MethodByName(string(callbackTypeBeforeDelete))
    	case callbackTypeAfterDelete:
    		return modelType.MethodByName(string(callbackTypeAfterDelete))
    	case callbackTypeAfterFind:
    		return modelType.MethodByName(string(callbackTypeAfterFind))
    	default:
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. tests/callbacks_test.go

    				var argValues []reflect.Value
    				for _, arg := range args {
    					argValues = append(argValues, reflect.ValueOf(arg))
    				}
    
    				results := reflect.ValueOf(s).MethodByName(name).Call(argValues)
    				if len(results) > 0 {
    					v = results[0].Interface()
    				}
    			}
    
    			if c.name == "" {
    				c.name = getFuncName(c.h)
    			}
    
    			if c.before != "" {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 26 03:33:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top