Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 146 for files (0.15 sec)

  1. misc/cgo/gmp/gmp.go

    Instead, a separate tool, cgo, processes it to produce three output
    files.  The first two, 6g.go and 6c.c, are a Go source file for 6g and
    a C source file for 6c; both compile as part of the named package
    (gmp, in this example).  The third, gcc.c, is a C source file for gcc;
    it compiles into a shared object (.so) that is dynamically linked into
    any 6.out that imports the first two files.
    
    The stanza
    
    	// #include <gmp.h>
    	import "C"
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  2. src/archive/tar/tar_test.go

    			t.Errorf("test %d, got nil-error, want non-nil error", i)
    		}
    	}
    }
    
    func Benchmark(b *testing.B) {
    	type file struct {
    		hdr  *Header
    		body []byte
    	}
    
    	vectors := []struct {
    		label string
    		files []file
    	}{{
    		"USTAR",
    		[]file{{
    			&Header{Name: "bar", Mode: 0640, Size: int64(3)},
    			[]byte("foo"),
    		}, {
    			&Header{Name: "world", Mode: 0640, Size: int64(5)},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  3. internal/ioutil/ioutil_test.go

    	if err != nil {
    		t.Errorf("Error creating tmp file: %v", err)
    	}
    	tmpFile := f.Name()
    	f.Close()
    	defer os.Remove(f.Name())
    	fi1, err := os.Stat(tmpFile)
    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	fi2, err := os.Stat(tmpFile)
    	if err != nil {
    		t.Fatalf("Error Stat(): %v", err)
    	}
    	if !SameFile(fi1, fi2) {
    		t.Fatal("Expected the files to be same")
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 02 11:02:31 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/archive/zip/writer_test.go

    		},
    		{
    			name:    "small deflate wo desc",
    			content: bytes.Repeat([]byte("abcdefg"), 2048),
    			method:  Deflate,
    		},
    	}
    
    	// write a zip file
    	archive := new(bytes.Buffer)
    	w := NewWriter(archive)
    
    	for i := range files {
    		f := &files[i]
    		f.crc32 = crc32.ChecksumIEEE(f.content)
    		size := uint64(len(f.content))
    		f.uncompressedSize = size
    		f.compressedSize = size
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  5. cmd/prepare-storage.go

    			pathJoin(diskPath, minioMetaTmpBucket),
    			err))
    	}
    
    	// Delete all temporary files created for DirectIO write check
    	files, _ := filepath.Glob(filepath.Join(diskPath, ".writable-check-*.tmp"))
    	for _, file := range files {
    		go removeAll(file)
    	}
    
    	// Remove the entire folder in case there are leftovers that didn't get cleaned up before restart.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  6. operator/cmd/mesh/install.go

    	}
    	if status.Status != v1alpha1.InstallStatus_HEALTHY {
    		return fmt.Errorf("errors occurred during operation")
    	}
    
    	// Previously we may install IOP file from the old version of istioctl. Now since we won't install IOP file
    	// anymore, and it didn't provide much value, we can delete it if it exists.
    	reconciler.DeleteIOPInClusterIfExists(iop)
    
    	opts.ProgressLog.SetState(progress.StateComplete)
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  7. src/archive/tar/example_test.go

    		{"todo.txt", "Get animal handling license."},
    	}
    	for _, file := range files {
    		hdr := &tar.Header{
    			Name: file.Name,
    			Mode: 0600,
    			Size: int64(len(file.Body)),
    		}
    		if err := tw.WriteHeader(hdr); err != nil {
    			log.Fatal(err)
    		}
    		if _, err := tw.Write([]byte(file.Body)); err != nil {
    			log.Fatal(err)
    		}
    	}
    	if err := tw.Close(); err != nil {
    		log.Fatal(err)
    	}
    
    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)
  8. cni/pkg/config/config.go

    	CNINetworkConfig string
    
    	// Logging level
    	LogLevel string
    	// Name of the kubeconfig file used by the CNI plugin
    	KubeconfigFilename string
    	// The file mode to set when creating the kubeconfig file
    	KubeconfigMode int
    	// CA file for kubeconfig
    	KubeCAFile string
    	// Whether to use insecure TLS in the kubeconfig file
    	SkipTLSVerify bool
    
    	// KUBERNETES_SERVICE_PROTOCOL
    	K8sServiceProtocol string
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/cgotest/overlaydir.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cgotest
    
    import (
    	"io"
    	"os"
    	"path/filepath"
    	"strings"
    )
    
    // OverlayDir makes a minimal-overhead copy of srcRoot in which new files may be added.
    func OverlayDir(dstRoot, srcRoot string) error {
    	dstRoot = filepath.Clean(dstRoot)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 20:56:09 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  10. cni/test/install_k8s_test.go

    			chainedCNIPlugin:       true,
    			resultFileName:         "01-calico.conflist",
    			expectedOutputFile:     testDataDir + "/expected/10-calico.conflist-istioconfig",
    			expectedPostCleanFile:  testDataDir + "/pre/calico.conflist",
    			cniConfDirOrderedFiles: []string{"non_json.conf", "calico.conflist", "minikube_cni.conf"},
    		},
    		{
    			name:                   "Skip invalid .conf file for first valid .conf file",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Jul 27 18:01:48 GMT 2022
    - 8K bytes
    - Viewed (0)
Back to top