Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 216 for pause (0.08 sec)

  1. src/cmd/compile/internal/types2/typexpr.go

    // type. If cause is non-nil and the type expression was a valid type but not
    // generic, cause will be populated with a message describing the error.
    func (check *Checker) genericType(e syntax.Expr, cause *string) Type {
    	typ := check.typInternal(e, nil)
    	assert(isTyped(typ))
    	if isValid(typ) && !isGeneric(typ) {
    		if cause != nil {
    			*cause = check.sprintf("%s is not a generic type", typ)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/cmd/asm/main.go

    	"cmd/internal/objabi"
    	"cmd/internal/telemetry"
    )
    
    func main() {
    	log.SetFlags(0)
    	log.SetPrefix("asm: ")
    	telemetry.Start()
    
    	buildcfg.Check()
    	GOARCH := buildcfg.GOARCH
    
    	flags.Parse()
    	telemetry.Inc("asm/invocations")
    	telemetry.CountFlags("asm/flag:", *flag.CommandLine)
    
    	architecture := arch.Set(GOARCH, *flags.Shared || *flags.Dynlink)
    	if architecture == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/cmd/go/internal/gover/gover.go

    func IsPrerelease(x string) bool {
    	return gover.Parse(x).Kind != ""
    }
    
    // Prev returns the Go major release immediately preceding v,
    // or v itself if v is the first Go major release (1.0) or not a supported
    // Go version.
    //
    // Examples:
    //
    //	Prev("1.2") = "1.1"
    //	Prev("1.3rc4") = "1.2"
    func Prev(x string) string {
    	v := gover.Parse(x)
    	if gover.CmpInt(v.Minor, "1") <= 0 {
    		return v.Major
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testplugin/testdata/issue25756/main.go

    package main
    
    import (
    	"flag"
    	"fmt"
    	"plugin"
    )
    
    const MAXDIM = 100
    
    var dim = flag.Int("dim", 16, "board dimensions")
    var gen = flag.Int("gen", 10, "generations")
    
    func main() {
    	flag.Parse()
    
    	var a [MAXDIM * MAXDIM]int32
    	for i := 2; i < *dim; i += 8 {
    		for j := 2; j < *dim-3; j += 8 {
    			for y := 0; y < 3; y++ {
    				a[i**dim+j+y] = 1
    			}
    		}
    	}
    
    	p, err := plugin.Open("life.so")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 928 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testgodefs/testdata/main.go

    var v4 = N{}
    var v5 = A{}
    var v6 = B{}
    
    // Test that S is fully defined
    var v7 = S{}
    
    // Test that #define'd type is fully defined
    var _ = issue38649{X: 0}
    
    // Test that prefixes do not cause duplicate field names.
    var _ = Issue48396{Fd: 1, Bpf_fd: 2}
    
    func main() {
    	pass := true
    
    	// The Go translation of bitfields should not have any of the
    	// bitfield types. The order in which bitfields are laid out
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/test/internal/genflags/vetflag.go

    		Name  string
    		Bool  bool
    		Usage string
    	}
    	if err := json.Unmarshal(out.Bytes(), &analysisFlags); err != nil {
    		return nil, fmt.Errorf("go vet: can't unmarshal JSON from %s -flags: %v", tool, err)
    	}
    
    	// parse the flags to figure out which ones stand for analyses
    	analyzerSet := make(map[string]bool)
    	rEnable := regexp.MustCompile("^enable .+ analysis$")
    	for _, flag := range analysisFlags {
    		if rEnable.MatchString(flag.Usage) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/operand_test.go

    	return NewParser(ctxt, architecture, nil)
    }
    
    // tryParse executes parse func in panicOnError=true context.
    // parse is expected to call any parsing methods that may panic.
    // Returns error gathered from recover; nil if no parse errors occurred.
    //
    // For unexpected panics, calls t.Fatal.
    func tryParse(t *testing.T, parse func()) (err error) {
    	panicOnError = true
    	defer func() {
    		panicOnError = false
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  8. src/cmd/cgo/ast.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Parse input AST and prepare Prog structure.
    
    package main
    
    import (
    	"fmt"
    	"go/ast"
    	"go/format"
    	"go/parser"
    	"go/scanner"
    	"go/token"
    	"os"
    	"strings"
    )
    
    func parse(name string, src []byte, flags parser.Mode) *ast.File {
    	ast1, err := parser.ParseFile(fset, name, src, flags)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  9. finisher_api.go

    			tx = tx.Clauses(clause.OnConflict{UpdateAll: true})
    		}
    		tx = tx.callbacks.Create().Execute(tx.Set("gorm:update_track_time", true))
    	case reflect.Struct:
    		if err := tx.Statement.Parse(value); err == nil && tx.Statement.Schema != nil {
    			for _, pf := range tx.Statement.Schema.PrimaryFields {
    				if _, isZero := pf.ValueOf(tx.Statement.Context, reflectValue); isZero {
    					return tx.callbacks.Create().Execute(tx)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/debug_lines_test.go

    		line := dump.Text()
    		dumpLineNum++
    		matches := inlineLine.FindStringSubmatch(line)
    		if len(matches) == 2 {
    			stmt, err := strconv.ParseInt(matches[1], 10, 32)
    			if err != nil {
    				t.Fatalf("Expected to parse a line number but saw %s instead on dump line #%d, error %v", matches[1], dumpLineNum, err)
    			}
    			if testing.Verbose() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top