Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for p2 (0.15 sec)

  1. 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)
  2. cmd/bucket-replication-metrics.go

    }
    
    func (p *ProxyMetric) add(p2 ProxyMetric) {
    	atomic.AddUint64(&p.GetTotal, p2.GetTotal)
    	atomic.AddUint64(&p.HeadTotal, p2.HeadTotal)
    	atomic.AddUint64(&p.GetTagTotal, p2.GetTagTotal)
    	atomic.AddUint64(&p.PutTagTotal, p2.PutTagTotal)
    	atomic.AddUint64(&p.RmvTagTotal, p2.RmvTagTotal)
    	atomic.AddUint64(&p.GetFailedTotal, p2.GetFailedTotal)
    	atomic.AddUint64(&p.HeadFailedTotal, p2.HeadFailedTotal)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  3. tests/query_test.go

    	}
    
    	p1 := CustomizedTypePrimaryKey{Name: "p1"}
    	p2 := CustomizedTypePrimaryKey{Name: "p2"}
    	p3 := CustomizedTypePrimaryKey{Name: "p3"}
    	DB.Create(&p1)
    	DB.Create(&p2)
    	DB.Create(&p3)
    
    	var p CustomizedTypePrimaryKey
    
    	if err := DB.First(&p, p2.ID).Error; err != nil {
    		t.Errorf("No error should returns, but got %v", err)
    	}
    
    	AssertEqual(t, p, p2)
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  4. src/archive/tar/reader.go

    		case format.has(FormatGNU):
    			hdr.Format = format
    			var p2 parser
    			gnu := tr.blk.toGNU()
    			if b := gnu.accessTime(); b[0] != 0 {
    				hdr.AccessTime = time.Unix(p2.parseNumeric(b), 0)
    			}
    			if b := gnu.changeTime(); b[0] != 0 {
    				hdr.ChangeTime = time.Unix(p2.parseNumeric(b), 0)
    			}
    
    			// Prior to Go1.8, the Writer had a bug where it would output
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  5. src/cmd/api/testdata/src/pkg/p1/p1.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 p1
    
    import (
    	ptwo "p2"
    )
    
    const (
    	ConstChase2 = constChase // forward declaration to unexported ident
    	constChase  = AIsLowerA  // forward declaration to exported ident
    
    	// Deprecated: use B.
    	A         = 1
    	a         = 11
    	A64 int64 = 1
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  6. tests/hooks_test.go

    	if DB.Save(&Product{Code: "dont_save", Price: 100}).Error == nil {
    		t.Fatalf("An error from after create callbacks happened when create with invalid value")
    	}
    
    	p2 := Product{Code: "update_callback", Price: 100}
    	DB.Save(&p2)
    
    	p2.Code = "dont_update"
    	if DB.Save(&p2).Error == nil {
    		t.Fatalf("An error from before update callbacks happened when update with invalid value")
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Feb 18 01:20:29 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  7. logger/sql_test.go

    		},
    		{
    			SQL:           "create table users (name, age, height, actived, bytes, create_at, update_at, deleted_at, email, role, pass) values (@p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11)",
    			NumericRegexp: regexp.MustCompile(`@p(\d+)`),
    			Vars:          []interface{}{"jinzhu", 1, 999.99, true, []byte("12345"), tt, &tt, nil, "******@****.***", myrole, pwd},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. tests/preload_test.go

    	DB.Migrator().AutoMigrate(&Preload{}, &Join{}, &Nested{}, &Value{})
    
    	value1 := Value{
    		Name: "value",
    		Nested: Nested{
    			Preloads: []*Preload{
    				{Value: "p1"}, {Value: "p2"},
    			},
    			Join: Join{Value: "j1"},
    		},
    	}
    	value2 := Value{
    		Name: "value2",
    		Nested: Nested{
    			Preloads: []*Preload{
    				{Value: "p3"}, {Value: "p4"}, {Value: "p5"},
    			},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  9. cmd/object-multipart-handlers.go

    		return
    	}
    	opts.Versioned = versioned
    	opts.VersionSuspended = suspended
    
    	// First, we compute the ETag of the multipart object.
    	// The ETag of a multi-part object is always:
    	//   ETag := MD5(ETag_p1, ETag_p2, ...)+"-N"   (N being the number of parts)
    	//
    	// This is independent of encryption. An encrypted multipart
    	// object also has an ETag that is the MD5 of its part ETags.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  10. cmd/site-replication.go

    				found = true
    				break
    			}
    		}
    		if !found {
    			return false
    		}
    	}
    	return true
    }
    
    func isPolicyMappingEqual(p1, p2 srPolicyMapping) bool {
    	return p1.Policy == p2.Policy && p1.IsGroup == p2.IsGroup && p1.UserOrGroup == p2.UserOrGroup
    }
    
    type srPeerInfo struct {
    	madmin.PeerInfo
    	EndpointURL *url.URL
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
Back to top