Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for stdPkgs (0.13 sec)

  1. src/go/doc/comment/std_test.go

    		if !strings.Contains(pkg, "/") {
    			list = append(list, pkg)
    		}
    	}
    	slices.Sort(list)
    
    	have := strings.Join(stdPkgs, "\n") + "\n"
    	want := strings.Join(list, "\n") + "\n"
    	if have != want {
    		t.Errorf("stdPkgs is out of date: regenerate with 'go generate'\n%s", diff.Diff("stdPkgs", []byte(have), "want", []byte(want)))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 825 bytes
    - Viewed (0)
  2. src/go/doc/comment/std.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Code generated by 'go generate' DO NOT EDIT.
    //go:generate ./mkstd.sh
    
    package comment
    
    var stdPkgs = []string{
    	"bufio",
    	"bytes",
    	"cmp",
    	"context",
    	"crypto",
    	"embed",
    	"encoding",
    	"errors",
    	"expvar",
    	"flag",
    	"fmt",
    	"hash",
    	"html",
    	"image",
    	"io",
    	"iter",
    	"log",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 671 bytes
    - Viewed (0)
  3. src/go/doc/comment/mkstd.sh

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Code generated by 'go generate' DO NOT EDIT.
    //go:generate ./mkstd.sh
    
    package comment
    
    var stdPkgs = []string{"
    go list std | grep -v / | sort | sed 's/.*/"&",/'
    echo "}"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:42 UTC 2022
    - 768 bytes
    - Viewed (0)
  4. src/go/doc/comment/parse.go

    		if path, ok := d.LookupPackage(pkg); ok {
    			return path, true
    		}
    	}
    	return DefaultLookupPackage(pkg)
    }
    
    func isStdPkg(path string) bool {
    	_, ok := slices.BinarySearch(stdPkgs, path)
    	return ok
    }
    
    // DefaultLookupPackage is the default package lookup
    // function, used when [Parser.LookupPackage] is nil.
    // It recognizes names of the packages from the standard
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 33.5K bytes
    - Viewed (0)
  5. src/internal/goroot/gccgo.go

    		if err != nil {
    			return false
    		}
    		for _, dirent := range dirents {
    			if strings.HasSuffix(dirent.Name(), ".go") {
    				return true
    			}
    		}
    		return false
    	case "gccgo":
    		return stdpkg[path]
    	default:
    		panic("unknown compiler " + compiler)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 18:16:28 UTC 2024
    - 758 bytes
    - Viewed (0)
Back to top