Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 167 for preserve (0.18 sec)

  1. src/bytes/bytes.go

    		}
    	}
    
    	// At this point s[start:stop] starts and ends with an ASCII
    	// non-space bytes, so we're done. Non-ASCII cases have already
    	// been handled above.
    	if start == stop {
    		// Special case to preserve previous TrimLeftFunc behavior,
    		// returning nil instead of empty slice if all spaces.
    		return nil
    	}
    	return s[start:stop]
    }
    
    // Runes interprets s as a sequence of UTF-8-encoded code points.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	}
    
    	// httptest Recorder to capture all the response by the http handler.
    	rec := httptest.NewRecorder()
    	// reading the body to preserve it so that it can be used again for second attempt of sending unsigned HTTP request.
    	// If the body is read in the handler the same request cannot be made use of.
    	buf, err := io.ReadAll(anonReq.Body)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    		[]byte("ab\xc0a\xc0")},
    	{not(isValidRune), "\xc0a\xc0",
    		[]byte("a"),
    		[]byte("a\xc0"),
    		[]byte("\xc0a")},
    	// The nils returned by TrimLeftFunc are odd behavior, but we need
    	// to preserve backwards compatibility.
    	{isSpace, "",
    		nil,
    		nil,
    		[]byte("")},
    	{isSpace, " ",
    		nil,
    		nil,
    		[]byte("")},
    }
    
    func TestTrimFunc(t *testing.T) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    		srcInfo.UserDefined[ReservedMetadataPrefixLower+ReplicationTimestamp] = UTCNow().Format(time.RFC3339Nano)
    	}
    	// Store the preserved compression metadata.
    	for k, v := range compressMetadata {
    		srcInfo.UserDefined[k] = v
    	}
    
    	// We need to preserve the encryption headers set in EncryptRequest,
    	// so we do not want to override them, copy them instead.
    	for k, v := range encMetadata {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  5. cmd/config-migrate.go

    		if err = json.Unmarshal(data, cfg); err != nil {
    			// Unable to parse old JSON simply re-initialize a new one.
    			return newServerCfg()
    		}
    	}
    
    	if !globalCredViaEnv && cfg.Credential.IsValid() {
    		// Preserve older credential if we do not have
    		// root credentials set via environment variable.
    		globalActiveCred = cfg.Credential
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:05:24 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  6. internal/grid/handlers.go

    func makeSubHandlerID(id HandlerID, subRoute string) subHandlerID {
    	b := subHandlerID(sha256.Sum256([]byte(subRoute)))
    	b[0] = byte(id)
    	b[1] = 0 // Reserved
    	return b
    }
    
    func (s subHandlerID) withHandler(id HandlerID) subHandlerID {
    	s[0] = byte(id)
    	s[1] = 0 // Reserved
    	return s
    }
    
    func (s *subHandlerID) String() string {
    	if s == nil {
    		return ""
    	}
    	return hex.EncodeToString(s[:])
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  7. src/archive/zip/writer.go

    	switch {
    	case fh.NonUTF8:
    		fh.Flags &^= 0x800
    	case (utf8Require1 || utf8Require2) && (utf8Valid1 && utf8Valid2):
    		fh.Flags |= 0x800
    	}
    
    	fh.CreatorVersion = fh.CreatorVersion&0xff00 | zipVersion20 // preserve compatibility byte
    	fh.ReaderVersion = zipVersion20
    
    	// If Modified is set, this takes precedence over MS-DOS timestamp fields.
    	if !fh.Modified.IsZero() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  8. src/cmd/api/testdata/src/pkg/p2/p2.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p2
    
    type Twoer interface {
    	// Deprecated: No good.
    	PackageTwoMeth()
    }
    
    // Deprecated: No good.
    func F() string {}
    
    func G() Twoer {}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 337 bytes
    - Viewed (0)
  9. src/cmd/api/testdata/src/pkg/p3/p3.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p3
    
    type ThirdBase struct{}
    
    func (tb *ThirdBase) GoodPlayer() (i, j, k int)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Nov 09 14:05:53 GMT 2022
    - 310 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue21897b.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !darwin || !cgo || internal
    
    package cgotest
    
    import "testing"
    
    func test21897(t *testing.T) {
    	t.Skip("test runs only on darwin+cgo")
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 308 bytes
    - Viewed (0)
Back to top