Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for EncryptedString (0.2 sec)

  1. tests/serializer_test.go

    	Number   int
    	Location string
    	IsIntern bool
    }
    
    type EncryptedString string
    
    func (es *EncryptedString) Scan(ctx context.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error) {
    	switch value := dbValue.(type) {
    	case []byte:
    		*es = EncryptedString(bytes.TrimPrefix(value, []byte("hello")))
    	case string:
    		*es = EncryptedString(strings.TrimPrefix(value, "hello"))
    	default:
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Fri Apr 21 14:09:38 GMT 2023
    - 7.6K bytes
    - Viewed (0)
Back to top