Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 250 for Mile (0.2 sec)

  1. src/archive/zip/reader_test.go

    	}
    	_, err = r.Open("test.txt")
    	if err != nil {
    		t.Errorf("Error reading file: %v", err)
    	}
    	if len(r.File) != 1 {
    		t.Fatalf("No entries in the file list")
    	}
    	if r.File[0].Name != "../test.txt" {
    		t.Errorf("Unexpected entry name: %s", r.File[0].Name)
    	}
    	if _, err := r.File[0].Open(); err != nil {
    		t.Errorf("Error opening file: %v", err)
    	}
    }
    
    func TestOpenReaderInsecurePath(t *testing.T) {
    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)
  2. src/cmd/cgo/ast.go

    	}
    	f.walk(ast2, ctxProg, (*File).validateIdents)
    	f.walk(ast2, ctxProg, (*File).saveExprs)
    
    	// Accumulate exported functions.
    	// The comments are only on ast1 but we need to
    	// save the function bodies from ast2.
    	// The first walk fills in ExpFunc, and the
    	// second walk changes the entries to
    	// refer to ast2 instead.
    	f.walk(ast1, ctxProg, (*File).saveExport)
    	f.walk(ast2, ctxProg, (*File).saveExport2)
    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)
  3. src/archive/zip/fuzz_test.go

    		if err != nil {
    			return
    		}
    
    		type file struct {
    			header  *FileHeader
    			content []byte
    		}
    		files := []file{}
    
    		for _, f := range r.File {
    			fr, err := f.Open()
    			if err != nil {
    				continue
    			}
    			content, err := io.ReadAll(fr)
    			if err != nil {
    				continue
    			}
    			files = append(files, file{header: &f.FileHeader, content: content})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/cgo/doc.go

    	-dynimport file
    		Write list of symbols imported by file. Write to
    		-dynout argument or to standard output. Used by go
    		build when building a cgo package.
    	-dynlinker
    		Write dynamic linker as part of -dynimport output.
    	-dynout file
    		Write -dynimport output to file.
    	-dynpackage package
    		Set Go package for -dynimport output.
    	-exportheader file
    		If there are any exported functions, write the
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  5. src/cmd/cgo/ast_go118.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !compiler_bootstrap
    
    package main
    
    import (
    	"go/ast"
    	"go/token"
    )
    
    func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) {
    	switch n := x.(type) {
    	default:
    		error_(token.NoPos, "unexpected type %T in walk", x)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Nov 30 21:45:10 GMT 2022
    - 730 bytes
    - Viewed (0)
  6. src/cmd/asm/internal/arch/s390x.go

    // Copyright 2016 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.
    
    // This file encapsulates some of the odd characteristics of the
    // s390x instruction set, to minimize its interaction
    // with the core of the assembler.
    
    package arch
    
    import (
    	"cmd/internal/obj/s390x"
    )
    
    func jumpS390x(word string) bool {
    	switch word {
    	case "BRC",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 17 14:55:25 GMT 2019
    - 1.2K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/arch/ppc64.go

    // Copyright 2015 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.
    
    // This file encapsulates some of the odd characteristics of the
    // 64-bit PowerPC (PPC64) instruction set, to minimize its interaction
    // with the core of the assembler.
    
    package arch
    
    import (
    	"cmd/internal/obj"
    	"cmd/internal/obj/ppc64"
    )
    
    func jumpPPC64(word string) bool {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Sep 07 20:53:33 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/gcc68255/c.h

    // Copyright 2015 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.
    
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 184 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue27054/egl.h

    // Copyright 2018 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.
    
    // This is the relevant part of EGL/egl.h.
    
    typedef void *EGLDisplay;
    C
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 255 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue23555a/a.go

    // Copyright 2018 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 issue23555
    
    // #include <stdlib.h>
    import "C"
    
    func X() {
    	C.free(C.malloc(10))
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 250 bytes
    - Viewed (0)
Back to top