Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of about 10,000 for stringy (0.15 sec)

  1. src/cmd/go/testdata/script/test_vendor.txt

    	if strings.Msg != "hello, world" {
    		t.Fatalf("unexpected msg: %v", strings.Msg)
    	}
    }
    -- vend/hello/hellox_test.go --
    package main_test
    
    import (
    	"strings" // really ../vendor/strings
    	"testing"
    )
    
    func TestMsgExternal(t *testing.T) {
    	if strings.Msg != "hello, world" {
    		t.Fatalf("unexpected msg: %v", strings.Msg)
    	}
    }
    -- vend/vendor/strings/msg.go --
    package strings
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 1000 bytes
    - Viewed (0)
  2. clause/where.go

    					if e, ok := v.Exprs[0].(Expr); ok {
    						sql := strings.ToUpper(e.SQL)
    						wrapInParentheses = strings.Contains(sql, AndWithSpace) || strings.Contains(sql, OrWithSpace)
    					}
    				}
    			case AndConditions:
    				if len(v.Exprs) == 1 {
    					if e, ok := v.Exprs[0].(Expr); ok {
    						sql := strings.ToUpper(e.SQL)
    						wrapInParentheses = strings.Contains(sql, AndWithSpace) || strings.Contains(sql, OrWithSpace)
    					}
    				}
    			case Expr:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Apr 25 12:22:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. src/mime/quotedprintable/writer_test.go

    			want: strings.Repeat("a", 74) + "=\r\n=3D",
    		},
    		{
    			in:   strings.Repeat("a", 75) + "=",
    			want: strings.Repeat("a", 75) + "=\r\n=3D",
    		},
    		{
    			in:   strings.Repeat(" ", 73),
    			want: strings.Repeat(" ", 72) + "=20",
    		},
    		{
    			in:   strings.Repeat(" ", 74),
    			want: strings.Repeat(" ", 73) + "=\r\n=20",
    		},
    		{
    			in:   strings.Repeat(" ", 75),
    			want: strings.Repeat(" ", 74) + "=\r\n=20",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/chdir.txt

    # go test
    go test -C ../strings -n
    stderr 'strings\.test'
    
    # go vet
    go vet -C ../strings -n
    stderr strings_test
    
    # -C must be first on command line (as of Go 1.21)
    ! go test -n -C ../strings
    stderr '^invalid value "../strings" for flag -C: -C flag must be first flag on command line$'
    
    -- custom/go.mod --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 19:23:42 UTC 2023
    - 744 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag.go

    			// incorrectly flag "comments" inside multiline
    			// string constants or anything else (this might
    			// not even be a Go program). So stop.
    			break
    		}
    	}
    }
    
    func (check *checker) comment(pos token.Pos, text string) {
    	if strings.HasPrefix(text, "//") {
    		if strings.Contains(text, "+build") {
    			check.plusBuildLine(pos, text)
    		}
    		if strings.Contains(text, "//go:build") {
    			check.goBuildLine(pos, text)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/vendor_gopath_issue11409.txt

    package main
    
    import (
    	"fmt"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"strings"
    )
    
    func changeVolume(s string, f func(s string) string) string {
    	vol := filepath.VolumeName(s)
    	return f(vol) + s[len(vol):]
    }
    
    func main() {
    	gopath := changeVolume(os.Args[1], strings.ToLower)
    	dir := changeVolume(os.Args[2], strings.ToUpper)
    	cmd := exec.Command("go", "run", "hello.go")
    	cmd.Dir = dir
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 982 bytes
    - Viewed (0)
  7. cmd/signature-v4-parser.go

    func parseCredentialHeader(credElement string, region string, stype serviceType) (ch credentialHeader, aec APIErrorCode) {
    	creds := strings.SplitN(strings.TrimSpace(credElement), "=", 2)
    	if len(creds) != 2 {
    		return ch, ErrMissingFields
    	}
    	if creds[0] != "Credential" {
    		return ch, ErrMissingCredTag
    	}
    	credElements := strings.Split(strings.TrimSpace(creds[1]), SlashSeparator)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/go/printer/comment.go

    		kind = "//"
    		var b strings.Builder
    		for _, c := range list {
    			after, found := strings.CutPrefix(c.Text, "//")
    			if !found {
    				return list
    			}
    			// Accumulate //go:build etc lines separately.
    			if isDirective(after) {
    				directives = append(directives, c)
    				continue
    			}
    			b.WriteString(strings.TrimPrefix(after, " "))
    			b.WriteString("\n")
    		}
    		text = b.String()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 07:35:19 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/str/str.go

    		if 'A' <= r && r <= 'Z' {
    			r += 'a' - 'A'
    		}
    		b.WriteRune(r)
    	}
    	return b.String()
    }
    
    // FoldDup reports a pair of strings from the list that are
    // equal according to strings.EqualFold.
    // It returns "", "" if there are no such strings.
    func FoldDup(list []string) (string, string) {
    	clash := map[string]string{}
    	for _, s := range list {
    		fold := ToFold(s)
    		if t := clash[fold]; t != "" {
    			if s > t {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 20:08:07 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. test/fixedbugs/issue29919.dir/a.go

    	if !strings.Contains(s, "a.go:15") {
    		panic("missing a.go:15")
    	}
    	if !strings.Contains(s, "a.go:19") {
    		panic("missing a.go:19")
    	}
    	if !strings.Contains(s, "a.init") {
    		panic("missing a.init")
    	}
    
    	// Check the CallersFrames results.
    	if debug {
    		iter := runtime.CallersFrames(pcs[:n])
    		for {
    			f, more := iter.Next()
    			fmt.Printf("%s %s:%d\n", f.Function, f.File, f.Line)
    			if !more {
    				break
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 17:50:47 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top