Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for He (0.13 sec)

  1. utils/tests/models.go

    import (
    	"database/sql"
    	"time"
    
    	"gorm.io/gorm"
    )
    
    // User has one `Account` (has one), many `Pets` (has many) and `Toys` (has many - polymorphic)
    // He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
    // He speaks many languages (many to many) and has many friends (many to many - single-table)
    // His pet also has one Toy (has one - polymorphic)
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  2. cmd/streaming-signature-v4_test.go

    		// Test - 1 valid buffer with CRLF.
    		{bytes.NewReader([]byte("\r\n")), nil},
    		// Test - 2 invalid buffer with no CRLF.
    		{bytes.NewReader([]byte("he")), errMalformedEncoding},
    		// Test - 3 invalid buffer with more characters.
    		{bytes.NewReader([]byte("he\r\n")), errMalformedEncoding},
    		// Test - 4 smaller buffer than expected.
    		{bytes.NewReader([]byte("h")), io.ErrUnexpectedEOF},
    	}
    	for i, tt := range tests {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 5.7K bytes
    - Viewed (0)
  3. cmd/admin-heal-ops.go

    			ClientToken:   clientToken,
    			ClientAddress: he.clientAddress,
    			StartTime:     he.startTime,
    		}
    
    		he.stop()
    		for !he.hasEnded() {
    			time.Sleep(1 * time.Second)
    		}
    		ahs.Lock()
    		defer ahs.Unlock()
    		// Heal sequence explicitly stopped, remove it.
    		delete(ahs.healSeqMap, path)
    	}
    
    	b, err := json.Marshal(&hsp)
    	return b, toAdminAPIErr(GlobalContext, err)
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  4. src/archive/tar/common.go

    	errWriteHole       = errors.New("archive/tar: write non-NUL byte in sparse hole")
    )
    
    type headerError []string
    
    func (he headerError) Error() string {
    	const prefix = "archive/tar: cannot encode header"
    	var ss []string
    	for _, s := range he {
    		if s != "" {
    			ss = append(ss, s)
    		}
    	}
    	if len(ss) == 0 {
    		return prefix
    	}
    	return fmt.Sprintf("%s: %v", prefix, strings.Join(ss, "; and "))
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
Back to top