Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 9,350 for wool (0.44 sec)

  1. src/text/template/doc.go

    executions share a Writer the output may be interleaved.
    
    Here is a trivial example that prints "17 items are made of wool".
    
    	type Inventory struct {
    		Material string
    		Count    uint
    	}
    	sweaters := Inventory{"wool", 17}
    	tmpl, err := template.New("test").Parse("{{.Count}} items are made of {{.Material}}")
    	if err != nil { panic(err) }
    	err = tmpl.Execute(os.Stdout, sweaters)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/tool/tool.go

    var CmdTool = &base.Command{
    	Run:       runTool,
    	UsageLine: "go tool [-n] command [args...]",
    	Short:     "run specified go tool",
    	Long: `
    Tool runs the go tool command identified by the arguments.
    With no arguments it prints the list of known tools.
    
    The -n flag causes tool to print the command that would be
    executed but not execute it.
    
    For more about each tool command, see 'go doc cmd/<command>'.
    `,
    }
    
    var toolN bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 18:02:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. test/codegen/bool.go

    func convertNeq0B(x uint8, c bool) bool {
    	// amd64:"ANDL\t[$]1",-"SETNE"
    	// ppc64x:"RLDICL",-"CMPW",-"ISEL"
    	b := x&1 != 0
    	return c && b
    }
    
    func convertNeq0W(x uint16, c bool) bool {
    	// amd64:"ANDL\t[$]1",-"SETNE"
    	// ppc64x:"RLDICL",-"CMPW",-"ISEL"
    	b := x&1 != 0
    	return c && b
    }
    
    func convertNeq0L(x uint32, c bool) bool {
    	// amd64:"ANDL\t[$]1",-"SETB"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 13 22:12:32 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  4. src/cmd/vet/testdata/bool/bool.go

    // Copyright 2014 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.
    
    // This file contains tests for the bool checker.
    
    package bool
    
    func _() {
    	var f, g func() int
    
    	if v, w := f(), g(); v == w || v == w { // ERROR "redundant or: v == w || v == w"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:42 UTC 2019
    - 346 bytes
    - Viewed (0)
  5. src/cmd/go/internal/base/tool.go

    	"cmd/go/internal/par"
    )
    
    // Tool returns the path to the named tool (for example, "vet").
    // If the tool cannot be found, Tool exits the process.
    func Tool(toolName string) string {
    	toolPath, err := ToolPath(toolName)
    	if err != nil && len(cfg.BuildToolexec) == 0 {
    		// Give a nice message if there is no tool with that name.
    		fmt.Fprintf(os.Stderr, "go: no such tool %q\n", toolName)
    		SetExitStatus(2)
    		Exit()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:04:09 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. schema/pool.go

    package schema
    
    import (
    	"reflect"
    	"sync"
    )
    
    // sync pools
    var (
    	normalPool      sync.Map
    	poolInitializer = func(reflectType reflect.Type) FieldNewValuePool {
    		v, _ := normalPool.LoadOrStore(reflectType, &sync.Pool{
    			New: func() interface{} {
    				return reflect.New(reflectType).Interface()
    			},
    		})
    		return v.(FieldNewValuePool)
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 11 13:37:44 UTC 2022
    - 345 bytes
    - Viewed (0)
  7. src/sync/pool.go

    // Get selects an arbitrary item from the [Pool], removes it from the
    // Pool, and returns it to the caller.
    // Get may choose to ignore the pool and treat it as empty.
    // Callers should not assume any relation between values passed to [Pool.Put] and
    // the values returned by Get.
    //
    // If Get would otherwise return nil and p.New is non-nil, Get returns
    // the result of calling p.New.
    func (p *Pool) Get() any {
    	if race.Enabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 9.4K bytes
    - Viewed (1)
  8. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/Tool.java

    import java.util.List;
    
    /**
     * Configuration of the arguments of a ToolChain executable.
     */
    @Incubating
    public interface Tool {
        /**
         * The arguments passed when executing this tool.
         */
        List<String> getArgs();
    
        /**
         * Adds a number of arguments to be passed to the tool.
         */
        void args(String... args);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-decom_test.go

    			name:           "Invalid-Decom-Pending-Pool-Removal",
    			expectedErr:    false,
    			expectedUpdate: true,
    		},
    		{
    			meta:           nmeta1,
    			pools:          reducedPools,
    			name:           "Correct-Decom-Pool-Removed",
    			expectedErr:    false,
    			expectedUpdate: true,
    		},
    		{
    			meta:           poolMeta{}, // no-pool info available fresh setup.
    			pools:          pools,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jul 03 16:47:40 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool.go

    	for _, pool := range pools {
    		if opts.SkipDecommissioned && z.IsSuspended(pool.Index) {
    			continue
    		}
    		// Skip object if it's from pools participating in a rebalance operation.
    		if opts.SkipRebalancing && z.IsPoolRebalancing(pool.Index) {
    			continue
    		}
    		if isErrReadQuorum(pool.Err) || pool.Err == nil {
    			errs = append(errs, poolErrs{Err: pool.Err, Index: pool.Index})
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 82.5K bytes
    - Viewed (0)
Back to top