Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for name (4.79 sec)

  1. src/archive/zip/reader.go

    	}
    	if e.isDir {
    		return &openDir{e, r.openReadDir(name), 0}, nil
    	}
    	rc, err := e.file.Open()
    	if err != nil {
    		return nil, err
    	}
    	return rc.(fs.File), nil
    }
    
    func split(name string) (dir, elem string, isDir bool) {
    	if len(name) > 0 && name[len(name)-1] == '/' {
    		isDir = true
    		name = name[:len(name)-1]
    	}
    	i := len(name) - 1
    	for i >= 0 && name[i] != '/' {
    		i--
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  2. src/cmd/cgo/godefs.go

    	for name, id := range goIdent {
    		if id.Name == name && strings.Contains(name, "_Ctype_union") {
    			if def := typedef[name]; def != nil {
    				id.Name = gofmt(def)
    			}
    		}
    	}
    
    	conf.Fprint(&buf, fset, f.AST)
    
    	return buf.String()
    }
    
    var gofmtBuf strings.Builder
    
    // gofmt returns the gofmt-formatted string for an AST node.
    func gofmt(n interface{}) string {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  3. src/archive/zip/struct.go

    }
    
    // FileInfoHeader creates a partially-populated [FileHeader] from an
    // fs.FileInfo.
    // Because fs.FileInfo's Name method returns only the base name of
    // the file it describes, it may be necessary to modify the Name field
    // of the returned header to provide the full path name of the file.
    // If compression is desired, callers should set the FileHeader.Method
    // field; it is unset by default.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  4. lib/time/mkzip.go

    		if err != nil {
    			log.Fatal(err)
    		}
    		if strings.HasSuffix(path, ".zip") {
    			log.Fatalf("unexpected file during walk: %s", path)
    		}
    		name := filepath.ToSlash(path)
    		w, err := zw.CreateRaw(&zip.FileHeader{
    			Name:               name,
    			Method:             zip.Store,
    			CompressedSize64:   uint64(len(data)),
    			UncompressedSize64: uint64(len(data)),
    			CRC32:              crc32.ChecksumIEEE(data),
    		})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/bytes/bytes_test.go

    				t.Errorf("%s(%q, %q) = nil; want %q", trimmer.name, tc.in, tc.f.name, trimmer.out)
    			}
    			if actual != nil && trimmer.out == nil {
    				t.Errorf("%s(%q, %q) = %q; want nil", trimmer.name, tc.in, tc.f.name, actual)
    			}
    			if !Equal(actual, trimmer.out) {
    				t.Errorf("%s(%q, %q) = %q; want %q", trimmer.name, tc.in, tc.f.name, actual, trimmer.out)
    			}
    		}
    	}
    }
    
    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)
  6. src/archive/zip/reader_test.go

    		<-done
    	}
    }
    
    func equalTimeAndZone(t1, t2 time.Time) bool {
    	name1, offset1 := t1.Zone()
    	name2, offset2 := t2.Zone()
    	return t1.Equal(t2) && name1 == name2 && offset1 == offset2
    }
    
    func readTestFile(t *testing.T, zt ZipTest, ft ZipTestFile, f *File, raw []byte) {
    	if f.Name != ft.Name {
    		t.Errorf("name=%q, want %q", f.Name, ft.Name)
    	}
    	if !ft.Modified.IsZero() && !equalTimeAndZone(f.Modified, ft.Modified) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  7. src/archive/tar/format.go

    //	------------------+--------+-----------+----------
    //	Name              |   256B | unlimited | unlimited
    //	Linkname          |   100B | unlimited | unlimited
    //	Size              | uint33 | unlimited |    uint89
    //	Mode              | uint21 |    uint21 |    uint57
    //	Uid/Gid           | uint21 | unlimited |    uint57
    //	Uname/Gname       |    32B | unlimited |       32B
    //	ModTime           | uint33 | unlimited |     int89
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  8. src/cmd/cgo/ast.go

    		return
    	}
    	if goname == "malloc" {
    		goname = "_CMalloc"
    	}
    	name := f.Name[goname]
    	if name == nil {
    		name = &Name{
    			Go: goname,
    		}
    		f.Name[goname] = name
    		f.NamePos[name] = sel.Pos()
    	}
    	f.Ref = append(f.Ref, &Ref{
    		Name:    name,
    		Expr:    n,
    		Context: context,
    	})
    }
    
    // Save calls to C.xxx for later processing.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  9. src/cmd/api/api_test.go

    			t.Errorf("package %s: extra feature not in golden file: %q", fi.Name(), feature)
    		}
    	}
    }
    
    func TestCompareAPI(t *testing.T) {
    	tests := []struct {
    		name                          string
    		features, required, exception []string
    		ok                            bool   // want
    		out                           string // want
    	}{
    		{
    			name:     "equal",
    			features: []string{"A", "B", "C"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/arch/arch.go

    	}
    	for i := riscv.REG_F0; i <= riscv.REG_F31; i++ {
    		name := fmt.Sprintf("F%d", i-riscv.REG_F0)
    		register[name] = int16(i)
    	}
    
    	// General registers with ABI names.
    	register["ZERO"] = riscv.REG_ZERO
    	register["RA"] = riscv.REG_RA
    	register["SP"] = riscv.REG_SP
    	register["GP"] = riscv.REG_GP
    	register["TP"] = riscv.REG_TP
    	register["T0"] = riscv.REG_T0
    	register["T1"] = riscv.REG_T1
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
Back to top