Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,632 for file (0.1 sec)

  1. src/cmd/vet/testdata/tagtest/file1.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.
    
    //go:build testtag
    // +build testtag
    
    package main
    
    import "fmt"
    
    func main() {
    	fmt.Printf("%s", 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:48 UTC 2021
    - 263 bytes
    - Viewed (0)
  2. src/cmd/vet/testdata/tagtest/file2.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.
    
    //go:build !testtag
    // +build !testtag
    
    package main
    
    import "fmt"
    
    func main() {
    	fmt.Printf("%s", 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:48 UTC 2021
    - 265 bytes
    - Viewed (0)
  3. src/cmd/internal/obj/line_test.go

    	}{
    		{src.NoPos, "??:0"},
    		{src.MakePos(afile, 1, 0), "a.go:1"},
    		{src.MakePos(afile, 2, 0), "a.go:2"},
    		{src.MakePos(bfile, 10, 4), "/foo/bar/b.go:10"},
    		{src.MakePos(lfile, 10, 0), "linedir:102"}, // 102 == 100 + (10 - (7+1))
    	}
    
    	for _, test := range tests {
    		fileIndex, line := ctxt.getFileIndexAndLine(ctxt.PosTable.XPos(test.pos))
    
    		file := "??"
    		if fileIndex >= 0 {
    			file = ctxt.PosTable.FileTable()[fileIndex]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/web/url_windows_test.go

    	{
    		url:          `file:c:/path/to/file`,
    		filePath:     `c:\path\to\file`,
    		canonicalURL: `file:///c:/path/to/file`,
    	},
    
    	// We encode the UNC share name as the authority following section E.3.1,
    	// because that is what the Microsoft blog post explicitly recommends.
    	{
    		url:      `file://host.example.com/Share/path/to/file.txt`,
    		filePath: `\\host.example.com\Share\path\to\file.txt`,
    	},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:43:51 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  5. src/cmd/internal/objfile/objfile.go

    	goarch() string
    	loadAddress() (uint64, error)
    	dwarf() (*dwarf.Data, error)
    }
    
    // A File is an opened executable file.
    type File struct {
    	r       *os.File
    	entries []*Entry
    }
    
    type Entry struct {
    	name string
    	raw  rawFile
    }
    
    // A Sym is a symbol defined in an executable file.
    type Sym struct {
    	Name   string  // symbol name
    	Addr   uint64  // virtual address of symbol
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 24 16:01:55 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  6. src/cmd/pprof/pprof.go

    	file   *objfile.File
    	pcln   objfile.Liner
    
    	triedDwarf bool
    	dwarf      *dwarf.Data
    }
    
    func (f *file) Name() string {
    	return f.name
    }
    
    func (f *file) ObjAddr(addr uint64) (uint64, error) {
    	return addr - f.offset, nil
    }
    
    func (f *file) BuildID() string {
    	// No support for build ID.
    	return ""
    }
    
    func (f *file) SourceLine(addr uint64) ([]driver.Frame, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/toolchain/path_windows.go

    // cutExt looks for any of the known extensions at the end of file.
    // If one is found, cutExt returns the file name with the extension trimmed,
    // the extension itself, and true to signal that an extension was found.
    // Otherwise cutExt returns file, "", false.
    func cutExt(file string, exts []string) (name, ext string, found bool) {
    	i := strings.LastIndex(file, ".")
    	if i < 0 {
    		return file, "", false
    	}
    	for _, x := range exts {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 31 15:15:19 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. src/cmd/gofmt/internal.go

    	"go/token"
    	"strings"
    )
    
    // parse parses src, which was read from the named file,
    // as a Go source file, declaration, or statement list.
    func parse(fset *token.FileSet, filename string, src []byte, fragmentOk bool) (
    	file *ast.File,
    	sourceAdj func(src []byte, indent int) []byte,
    	indentAdj int,
    	err error,
    ) {
    	// Try as whole source file.
    	file, err = parser.ParseFile(fset, filename, src, parserMode)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 28 14:23:08 UTC 2020
    - 5K bytes
    - Viewed (0)
  9. utils/utils_unix_test.go

    import (
    	"testing"
    )
    
    func TestSourceDir(t *testing.T) {
    	cases := []struct {
    		file string
    		want string
    	}{
    		{
    			file: "/Users/name/go/pkg/mod/gorm.io/gorm@v1.2.3/utils/utils.go",
    			want: "/Users/name/go/pkg/mod/gorm.io/",
    		},
    		{
    			file: "/go/work/proj/gorm/utils/utils.go",
    			want: "/go/work/proj/gorm/",
    		},
    		{
    			file: "/go/work/proj/gorm_alias/utils/utils.go",
    			want: "/go/work/proj/gorm_alias/",
    		},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Nov 21 02:48:13 UTC 2022
    - 731 bytes
    - Viewed (0)
  10. src/cmd/internal/cov/readcovdata.go

    	return r.err
    }
    
    // visitPod examines a coverage data 'pod', that is, a meta-data file and
    // zero or more counter data files that refer to that meta-data file.
    func (r *CovDataReader) visitPod(p pods.Pod) error {
    	r.verb(1, "visiting pod: metafile %s with %d counter files",
    		p.MetaFile, len(p.CounterDataFiles))
    	r.vis.BeginPod(p)
    
    	// Open meta-file
    	f, err := os.Open(p.MetaFile)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top