Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Animal (0.3 sec)

  1. src/archive/tar/example_test.go

    	"bytes"
    	"fmt"
    	"io"
    	"log"
    	"os"
    )
    
    func Example_minimal() {
    	// Create and add some files to the archive.
    	var buf bytes.Buffer
    	tw := tar.NewWriter(&buf)
    	var files = []struct {
    		Name, Body string
    	}{
    		{"readme.txt", "This archive contains some text files."},
    		{"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
    		{"todo.txt", "Get animal handling license."},
    	}
    	for _, file := range files {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 16 16:54:08 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  2. tests/non_std_test.go

    	animal.Name = "amazing horse"
    	DB.Save(&animal)
    	DB.First(&animal, animal.Counter)
    	if animal.Name != "amazing horse" {
    		t.Errorf("Update a filed with a default value should occur. But got %v\n", animal.Name)
    	}
    
    	// When changing a field with a default value with blank value
    	animal.Name = ""
    	DB.Save(&animal)
    	DB.First(&animal, animal.Counter)
    	if animal.Name != "" {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  3. src/archive/zip/example_test.go

    	// Add some files to the archive.
    	var files = []struct {
    		Name, Body string
    	}{
    		{"readme.txt", "This archive contains some text files."},
    		{"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
    		{"todo.txt", "Get animal handling licence.\nWrite more examples."},
    	}
    	for _, file := range files {
    		f, err := w.Create(file.Name)
    		if err != nil {
    			log.Fatal(err)
    		}
    		_, err = f.Write([]byte(file.Body))
    		if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 27 00:22:03 GMT 2016
    - 2K bytes
    - Viewed (0)
  4. internal/dsync/lock-args.go

    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package dsync
    
    //go:generate msgp -file $GOFILE
    
    // LockArgs is minimal required values for any dsync compatible lock operation.
    type LockArgs struct {
    	// Unique ID of lock/unlock request.
    	UID string
    
    	// Resources contains single or multiple entries to be locked/unlocked.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 04:34:26 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  5. cmd/storage-datatypes.go

    	// Combined checksum when object was uploaded.
    	Checksum []byte `msg:"cs,allownil"`
    
    	// Versioned - indicates if this file is versioned or not.
    	Versioned bool `msg:"vs"`
    }
    
    // ShallowCopy - copies minimal information for READ MRF checks.
    func (fi FileInfo) ShallowCopy() (n FileInfo) {
    	n.Volume = fi.Volume
    	n.Name = fi.Name
    	n.VersionID = fi.VersionID
    	n.Deleted = fi.Deleted
    	n.Erasure = fi.Erasure
    	return
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  6. operator/cmd/mesh/manifest-generate_test.go

    	assert.NoError(t, err)
    
    	// Install a default revision should not cause any error
    	minimal := "minimal"
    	_, err = fakeControllerReconcile(minimal, tmpCharts, &helmreconciler.Options{Force: false, SkipPrune: true})
    	assert.NoError(t, err)
    }
    
    func TestManifestGenerateIstiodRemote(t *testing.T) {
    	g := NewWithT(t)
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Feb 22 08:32:23 GMT 2024
    - 42K bytes
    - Viewed (0)
  7. operator/cmd/mesh/profile-list_test.go

    	rootCmd.SetErr(&out)
    
    	err := rootCmd.Execute()
    	if err != nil {
    		t.Fatalf("failed to execute istioctl profile command: %v", err)
    	}
    	output := out.String()
    	expectedProfiles := []string{"default", "demo", "empty", "minimal", "openshift", "preview", "remote", "external"}
    	for _, prof := range expectedProfiles {
    		g.Expect(output).To(ContainSubstring(prof))
    	}
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  8. internal/bucket/encryption/bucket-sse-config.go

    }
    
    // Apply applies the SSE bucket configuration on the given HTTP headers and
    // sets the specified SSE headers.
    //
    // Apply does not overwrite any existing SSE headers. Further, it will
    // set minimal SSE-KMS headers if autoEncrypt is true and the BucketSSEConfig
    // is nil.
    func (b *BucketSSEConfig) Apply(headers http.Header, opts ApplyOptions) {
    	if crypto.Requested(headers) {
    		return
    	}
    	if b == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 4.9K bytes
    - Viewed (0)
  9. src/archive/tar/writer.go

    	fmtStr(ustar.userName(), hdr.Uname)
    	fmtStr(ustar.groupName(), hdr.Gname)
    	fmtNum(ustar.devMajor(), hdr.Devmajor)
    	fmtNum(ustar.devMinor(), hdr.Devminor)
    
    	return &tw.blk
    }
    
    // writeRawFile writes a minimal file with the given name and flag type.
    // It uses format to encode the header format and will write data as the body.
    // It uses default values for all of the other fields (as BSD and GNU tar does).
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  10. istioctl/pkg/multicluster/remote_secret.go

    		// User chose not to automatically create the service account.
    		return nil, fmt.Errorf("failed retrieving service account %s.%s required for creating "+
    			"the remote secret (hint: try installing a minimal Istio profile on the cluster first, "+
    			"or run with '--create-service-account=true'): %v",
    			opt.ServiceAccountName,
    			opt.Namespace,
    			err)
    	}
    
    	if err := createServiceAccount(client, opt); err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
Back to top