Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 283 for Universe (0.12 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    	Doc:      analysisutil.MustExtractDoc(doc, "slog"),
    	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/slog",
    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    var stringType = types.Universe.Lookup("string").Type()
    
    // A position describes what is expected to appear in an argument position.
    type position int
    
    const (
    	// key is an argument position that should hold a string key or an Attr.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. src/go/types/issues_test.go

    	testFiles(t, []string{"t.go"}, [][]byte{[]byte(tsrc)}, false, withImporter)
    }
    
    func TestIssue50646(t *testing.T) {
    	anyType := Universe.Lookup("any").Type().Underlying()
    	comparableType := Universe.Lookup("comparable").Type()
    
    	if !Comparable(anyType) {
    		t.Error("any is not a comparable type")
    	}
    	if !Comparable(comparableType) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  3. cmd/update_test.go

    			envName:     "MESOS_CONTAINER_NAME",
    			envValue:    "mesos-11111",
    			mode:        globalMinioModeErasure,
    			expectedStr: fmt.Sprintf("MinIO (%s; %s; %s; %s; source DEVELOPMENT.GOGET DEVELOPMENT.GOGET DEVELOPMENT.GOGET universe-%s", runtime.GOOS, runtime.GOARCH, globalMinioModeErasure, "dcos", "mesos-1111"),
    		},
    		{
    			envName:     "KUBERNETES_SERVICE_HOST",
    			envValue:    "10.11.148.5",
    			mode:        globalMinioModeErasure,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Mar 09 03:07:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/issues_test.go

    	testFiles(t, []string{"t.go"}, [][]byte{[]byte(tsrc)}, 0, false, withImporter)
    }
    
    func TestIssue50646(t *testing.T) {
    	anyType := Universe.Lookup("any").Type().Underlying()
    	comparableType := Universe.Lookup("comparable").Type()
    
    	if !Comparable(anyType) {
    		t.Error("any is not a comparable type")
    	}
    	if !Comparable(comparableType) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/types.go

    package printf
    
    import (
    	"fmt"
    	"go/ast"
    	"go/types"
    
    	"golang.org/x/tools/go/analysis"
    	"golang.org/x/tools/internal/aliases"
    	"golang.org/x/tools/internal/typeparams"
    )
    
    var errorType = types.Universe.Lookup("error").Type().Underlying().(*types.Interface)
    
    // matchArgType reports an error if printf verb t is not appropriate for
    // operand arg.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/typestring.go

    			// (say int), point out where it is declared to avoid confusing
    			// error messages. This doesn't need to be super-elegant; we just
    			// need a clear indication that this is not a predeclared name.
    			if w.ctxt == nil && Universe.Lookup(t.obj.name) != nil {
    				if isTypes2 {
    					w.string(fmt.Sprintf(" /* with %s declared at %v */", t.obj.name, t.obj.Pos()))
    				} else {
    					// Can't print position information because
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. src/go/types/typestring.go

    			// (say int), point out where it is declared to avoid confusing
    			// error messages. This doesn't need to be super-elegant; we just
    			// need a clear indication that this is not a predeclared name.
    			if w.ctxt == nil && Universe.Lookup(t.obj.name) != nil {
    				if isTypes2 {
    					w.string(fmt.Sprintf(" /* with %s declared at %v */", t.obj.name, t.obj.Pos()))
    				} else {
    					// Can't print position information because
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    	types.Typ[types.Int32],
    	types.Typ[types.Int64],
    	types.Typ[types.Uint],
    	types.Typ[types.Uint8],
    	types.Typ[types.Uint16],
    	types.Typ[types.Uint32],
    	types.Typ[types.Uint64],
    	types.NewSlice(types.Universe.Lookup("byte").Type()),
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	for _, f := range pass.Files {
    		if !strings.HasSuffix(pass.Fset.File(f.Pos()).Name(), "_test.go") {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types/fmt.go

    package types
    
    import (
    	"bytes"
    	"encoding/binary"
    	"fmt"
    	"strconv"
    	"sync"
    
    	"cmd/compile/internal/base"
    	"cmd/internal/notsha256"
    )
    
    // BuiltinPkg is a fake package that declares the universe block.
    var BuiltinPkg *Pkg
    
    // LocalPkg is the package being compiled.
    var LocalPkg *Pkg
    
    // UnsafePkg is package unsafe.
    var UnsafePkg *Pkg
    
    // BlankSym is the blank (_) symbol.
    var BlankSym *Sym
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  10. src/go/printer/testdata/declarations.input

    			0xd4, 0x0, 0xae, 0x6a, 0x4d, 0x1b, 0x8a, 0x3b, 0x6a, 0x13,
    			0x64, 0x2b, 0x23, 0xf2, 0x8b, 0x0, 0x3b, 0xfb, 0x97, 0x79,
    		},
    	}
    }
    
    
    func _() {
    	var Universe = Scope {
    		Names: map[string]*Ident {
    			// basic types
    			"bool": nil,
    			"byte": nil,
    			"int8": nil,
    			"int16": nil,
    			"int32": nil,
    			"int64": nil,
    			"uint8": nil,
    			"uint16": nil,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
Back to top