Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of about 10,000 for String4 (0.19 sec)

  1. src/cmd/go/testdata/mod/rsc.io_sampler_v1.2.1.txt

    	var tags []language.Tag
    	for _, line := range strings.Split(s, "\n") {
    		line = strings.TrimSpace(line)
    		if line == "" {
    			continue
    		}
    		f := strings.Split(line, ": ")
    		if len(f) != 3 {
    			continue
    		}
    		tag := language.Make(f[1])
    		tags = append(tags, tag)
    		t.byTag[tag.String()] = f[2]
    	}
    	t.matcher = language.NewMatcher(tags)
    	return t
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 17:49:01 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  2. buildscripts/gen-ldflags.go

    func releaseTag(version string) (string, time.Time) {
    	relPrefix := "DEVELOPMENT"
    	if prefix := os.Getenv("MINIO_RELEASE"); prefix != "" {
    		relPrefix = prefix
    	}
    
    	relSuffix := ""
    	if hotfix := os.Getenv("MINIO_HOTFIX"); hotfix != "" {
    		relSuffix = hotfix
    	}
    
    	relTag := strings.Replace(version, " ", "-", -1)
    	relTag = strings.Replace(relTag, ":", "-", -1)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 16 23:10:48 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/flag.go

    		}
    		pattern := strings.TrimSpace(v[:i])
    		match = MatchPackage(pattern, cwd)
    		v = v[i+1:]
    	}
    	flags, err := quoted.Split(v)
    	if err != nil {
    		return err
    	}
    	if flags == nil {
    		flags = []string{}
    	}
    	f.values = append(f.values, ppfValue{match, flags})
    	return nil
    }
    
    func (f *PerPackageFlag) String() string { return f.raw }
    
    // Present reports whether the flag appeared on the command line.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:20:43 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  4. src/strings/replace_test.go

    	r    *Replacer
    	want string
    }{
    	{capitalLetters, "*strings.byteReplacer"},
    	{htmlEscaper, "*strings.byteStringReplacer"},
    	{NewReplacer("12", "123"), "*strings.singleStringReplacer"},
    	{NewReplacer("1", "12"), "*strings.byteStringReplacer"},
    	{NewReplacer("", "X"), "*strings.genericReplacer"},
    	{NewReplacer("a", "1", "b", "12", "cde", "123"), "*strings.genericReplacer"},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 22:53:05 UTC 2017
    - 14.1K bytes
    - Viewed (0)
  5. logger/sql.go

    	default:
    		return false
    	}
    }
    
    // ExplainSQL generate SQL string with given parameters, the generated SQL is expected to be used in logger, execute it might introduce a SQL injection vulnerability
    func ExplainSQL(sql string, numericPlaceholder *regexp.Regexp, escaper string, avars ...interface{}) string {
    	var (
    		convertParams func(interface{}, int)
    		vars          = make([]string, len(avars))
    	)
    
    	convertParams = func(v interface{}, idx int) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. pkg/test/framework/errors/deprecations.go

    // limitations under the License.
    
    package errors
    
    import (
    	"bufio"
    	"fmt"
    	"strings"
    
    	"github.com/hashicorp/go-multierror"
    )
    
    type DeprecatedError struct {
    	msg string
    }
    
    func NewDeprecatedError(format string, args ...any) error {
    	return &DeprecatedError{fmt.Sprintf(format, args...)}
    }
    
    func IsDeprecatedError(err error) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  7. pkg/config/analysis/diag/level.go

    }
    
    // GetAllLevelStrings returns a list of strings representing the names of all Levels defined. The order is arbitrary but
    // should be the same as GetAllLevels.
    func GetAllLevelStrings() []string {
    	levels := GetAllLevels()
    	var s []string
    	for _, l := range levels {
    		s = append(s, l.name)
    	}
    	return s
    }
    
    // GetUppercaseStringToLevelMap returns a mapping of uppercase strings to Level structs. This function is intended to be
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 17 12:28:05 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  8. src/net/http/httptest/httptest.go

    // Package httptest provides utilities for HTTP testing.
    package httptest
    
    import (
    	"bufio"
    	"bytes"
    	"context"
    	"crypto/tls"
    	"io"
    	"net/http"
    	"strings"
    )
    
    // NewRequest wraps NewRequestWithContext using context.Background.
    func NewRequest(method, target string, body io.Reader) *http.Request {
    	return NewRequestWithContext(context.Background(), method, target, body)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:09:14 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. pilot/pkg/security/authz/model/util.go

    	}
    	return uint32(p), nil
    }
    
    func extractNameInBrackets(s string) (string, error) {
    	if !strings.HasPrefix(s, "[") || !strings.HasSuffix(s, "]") {
    		return "", fmt.Errorf("expecting format [<NAME>], but found %s", s)
    	}
    	return strings.TrimPrefix(strings.TrimSuffix(s, "]"), "["), nil
    }
    
    func extractNameInNestedBrackets(s string) ([]string, error) {
    	var claims []string
    	findEndBracket := func(begin int) int {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 10:39:25 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/objfile.go

    	if s.IsPcdata() {
    		return 'P'
    	}
    	if strings.HasPrefix(name, "gcargs.") ||
    		strings.HasPrefix(name, "gclocals.") ||
    		strings.HasPrefix(name, "gclocals·") ||
    		strings.HasSuffix(name, ".opendefer") ||
    		strings.HasSuffix(name, ".arginfo0") ||
    		strings.HasSuffix(name, ".arginfo1") ||
    		strings.HasSuffix(name, ".argliveinfo") ||
    		strings.HasSuffix(name, ".wrapinfo") ||
    		strings.HasSuffix(name, ".args_stackmap") ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
Back to top