Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 165 for bland (0.07 sec)

  1. src/go/printer/gobuild.go

    // but it avoids creating doubled blank lines,
    // which would not be gofmt-standard output.
    // It assumes that only whole blocks of lines are being appended,
    // not line fragments.
    func appendLines(x, y []byte) []byte {
    	if len(y) > 0 && isNL(y[0]) && // y starts in blank line
    		(len(x) == 0 || len(x) >= 2 && isNL(x[len(x)-1]) && isNL(x[len(x)-2])) { // x is empty or ends in blank line
    		y = y[1:] // delete y's leading blank line
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/decls0.go

    func (S0) m4 () (x *S0.m4 /* ERROR "S0.m4 is not a type" */ ) { return }
    
    // interfaces may not have any blank methods
    type BlankI interface {
    	_ /* ERROR "methods must have a unique non-blank name" */ ()
    	_ /* ERROR "methods must have a unique non-blank name" */ (float32) int
    	m()
    }
    
    // non-interface types may have multiple blank methods
    type BlankT struct{}
    
    func (BlankT) _() {}
    func (BlankT) _(int) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. tests/non_std_test.go

    		t.Errorf("Update a filed with a default value should occur. But got %v\n", animal.Name)
    	}
    
    	// When changing a field with a default value with blank value
    	animal.Name = ""
    	DB.Save(&animal)
    	DB.First(&animal, animal.Counter)
    	if animal.Name != "" {
    		t.Errorf("Update a filed to blank with a default value should occur. But got %v\n", animal.Name)
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. pkg/proxy/apis/config/validation/validation_test.go

    		},
    		"invalid mode non-existent": {
    			mode:         kubeproxyconfig.ProxyMode("non-existing"),
    			expectedErrs: field.ErrorList{field.Invalid(newPath.Child("ProxyMode"), "non-existing", "must be iptables, ipvs, nftables or blank (blank means the best-available proxy [currently iptables])")},
    		},
    	} {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    	// Determine cutpoint where +build comments are no longer valid.
    	// They are valid in leading // comments in the file followed by
    	// a blank line.
    	//
    	// This must be done as a separate pass because of the
    	// requirement that the comment be followed by a blank line.
    	var cutoff int
    	for i, line := range lines {
    		line = bytes.TrimSpace(line)
    		if !bytes.HasPrefix(line, slashSlash) {
    			if len(line) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. src/internal/trace/gc.go

    	// bandDur.
    	bands []mmuBand
    	// bandDur is the duration of each band.
    	bandDur int64
    }
    
    type mmuBand struct {
    	// minUtil is the minimum instantaneous mutator utilization in
    	// this band.
    	minUtil float64
    	// cumUtil is the cumulative total mutator utilization between
    	// time 0 and the left edge of this band.
    	cumUtil totalUtil
    
    	// integrator is the integrator for the left edge of this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/labels.go

    		continue L2 /* ERROR "invalid continue label L2" */
    		continue L3
    		goto L1
    		goto L2
    		goto L3
    	}
    }
    
    // Blank labels are never declared.
    
    func f4() {
    _:
    _: // multiple blank labels are ok
    	goto _ /* ERROR "label _ not declared" */
    }
    
    func f5() {
    _:
    	for {
    		break _ /* ERROR "invalid break label _" */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/importdecl0/importdecl0a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package importdecl0
    
    import ()
    
    import (
    	// we can have multiple blank imports (was bug)
    	_ "math"
    	_ "net/rpc"
    	init /* ERROR "cannot import package as init" */ "fmt"
    	// reflect defines a type "flag" which shows up in the gc export data
    	"reflect"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. pkg/proxy/apis/config/validation/validation.go

    		validModes.Insert(string(kubeproxyconfig.ProxyModeNFTables))
    	}
    
    	if mode == "" || validModes.Has(string(mode)) {
    		return nil
    	}
    
    	errMsg := fmt.Sprintf("must be %s or blank (blank means the best-available proxy [currently iptables])", strings.Join(sets.List(validModes), ", "))
    	return field.ErrorList{field.Invalid(fldPath.Child("ProxyMode"), string(mode), errMsg)}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/build/relnote/relnote.go

    			if pkg != "" && pkg != prevPkg {
    				h := stdlibPackageHeading(pkg, lastBlock(doc).Pos().EndLine)
    				doc.Blocks = append(doc.Blocks, h)
    			}
    			prevPkg = pkg
    			// Put a blank line between the current and new blocks, so that the end
    			// of a file acts as a blank line.
    			lastLine := lastBlock(doc).Pos().EndLine
    			delta := lastLine + 2 - newdoc.Blocks[0].Pos().StartLine
    			for _, b := range newdoc.Blocks {
    				addLines(b, delta)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top