Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 67 for setLinger (0.2 sec)

  1. Makefile

    	@echo "Installing msgp" && go install -v github.com/tinylib/msgp@v1.1.10-0.20240227114326-6d6f813fff1b
    	@echo "Installing stringer" && go install -v golang.org/x/tools/cmd/stringer@latest
    
    crosscompile: ## cross compile minio
    	@(env bash $(PWD)/buildscripts/cross-compile.sh)
    
    verifiers: lint check-gen
    
    check-gen: ## check for updated autogenerated files
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. src/go/printer/testdata/expressions.golden

    	_ = struct{ s struct{ int } }{struct{ int }{0}}
    
    	_ = (interface{})(nil)
    	_ = (interface{ String() string })(nil)
    	_ = (interface {
    		String() string
    	})(nil)
    	_ = (interface{ fmt.Stringer })(nil)
    	_ = (interface {
    		fmt.Stringer
    	})(nil)
    }
    
    func _() {
    	// do not modify literals
    	_ = "tab1	tab2	tab3	end"	// string contains 3 tabs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  3. src/go/printer/testdata/expressions.raw

    	_ = struct{ s struct{ int } }{struct{ int }{0}}
    
    	_ = (interface{})(nil)
    	_ = (interface{ String() string })(nil)
    	_ = (interface {
    		String() string
    	})(nil)
    	_ = (interface{ fmt.Stringer })(nil)
    	_ = (interface {
    		fmt.Stringer
    	})(nil)
    }
    
    func _() {
    	// do not modify literals
    	_ = "tab1	tab2	tab3	end"	// string contains 3 tabs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  4. src/cmd/vet/vet_test.go

    		cmd.Env = append(os.Environ(), "GOWORK=off")
    		cmd.Dir = "testdata/rangeloop"
    		cmd.Stderr = new(strings.Builder) // all vet output goes to stderr
    		cmd.Run()
    		stderr := cmd.Stderr.(fmt.Stringer).String()
    
    		filename := filepath.FromSlash("testdata/rangeloop/rangeloop.go")
    
    		// Unlike the tests above, which runs vet in cmd/vet/, this one
    		// runs it in subdirectory, so the "full names" in the output
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. src/cmd/vet/testdata/print/print.go

    	_ = fmt.Errorf(format, args...)
    }
    
    // multi is used by the test.
    func multi() []interface{} {
    	panic("don't call - testing only")
    }
    
    type stringer int
    
    func (stringer) String() string { return "string" }
    
    type ptrStringer float64
    
    var stringerv ptrStringer
    
    func (*ptrStringer) String() string {
    	return "string"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  6. src/go/printer/testdata/expressions.input

    	_ = struct{ s struct { int } }{struct{ int}{0} }
    
    	_ = (interface{})(nil)
    	_ = (interface{String() string})(nil)
    	_ = (interface{
    		String()    string
    	})(nil)
    	_ = (interface{fmt.Stringer})(nil)
    	_ = (interface{
    		    fmt.Stringer
    	})(nil)
    }
    
    func _() {
    	// do not modify literals
    	_ = "tab1	tab2	tab3	end"  // string contains 3 tabs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.1K bytes
    - Viewed (0)
  7. src/fmt/example_test.go

    	// Result: [97 226 140 152] [97 226 140 152] a⌘ "a⌘" 61e28c98 61 e2 8c 98
    
    	// Types that implement Stringer are printed the same as strings. Because
    	// Stringers return a string, we can print them using a string-specific
    	// verb such as %q.
    	now := time.Unix(123456789, 0).UTC() // time.Time implements fmt.Stringer.
    	fmt.Printf("%v %q\n", now, now)
    	// Result: 1973-11-29 21:33:09 +0000 UTC "1973-11-29 21:33:09 +0000 UTC"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 21:03:10 UTC 2019
    - 11.8K bytes
    - Viewed (0)
  8. src/html/template/js.go

    		switch t := a.(type) {
    		case JS:
    			return string(t)
    		case JSStr:
    			// TODO: normalize quotes.
    			return `"` + string(t) + `"`
    		case json.Marshaler:
    			// Do not treat as a Stringer.
    		case fmt.Stringer:
    			a = t.String()
    		}
    	} else {
    		for i, arg := range args {
    			args[i] = indirectToJSONMarshaler(arg)
    		}
    		a = fmt.Sprint(args...)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. src/context/context.go

    	go func() {
    		select {
    		case <-parent.Done():
    			child.cancel(false, parent.Err(), Cause(parent))
    		case <-child.Done():
    		}
    	}()
    }
    
    type stringer interface {
    	String() string
    }
    
    func contextName(c Context) string {
    	if s, ok := c.(stringer); ok {
    		return s.String()
    	}
    	return reflectlite.TypeOf(c).String()
    }
    
    func (c *cancelCtx) String() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/arm64/a.out.go

    )
    
    const (
    	C_XPRE  = 1 << 6 // match arm.C_WBIT, so Prog.String know how to print it
    	C_XPOST = 1 << 5 // match arm.C_PBIT, so Prog.String know how to print it
    )
    
    //go:generate go run ../stringer.go -i $GOFILE -o anames.go -p arm64
    
    const (
    	AADC = obj.ABaseARM64 + obj.A_ARCHSPECIFIC + iota
    	AADCS
    	AADCSW
    	AADCW
    	AADD
    	AADDS
    	AADDSW
    	AADDW
    	AADR
    	AADRP
    	AAESD
    	AAESE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 17:56:30 UTC 2023
    - 18.1K bytes
    - Viewed (0)
Back to top