- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 269 for parseList (0.56 sec)
-
pkg/test/framework/components/echo/deployment/builder.go
expected := sets.New[string]() for _, subset := range config.Subsets { expected.InsertAll(parseList(subset.Annotations[annotation.InjectTemplates.Name])...) } if b.templates == nil || b.templates[c.Name()] == nil { return expected.IsEmpty() } return b.templates[c.Name()].SupersetOf(expected) } func parseList(s string) []string { if len(strings.TrimSpace(s)) == 0 { return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 12K bytes - Viewed (0) -
src/go/parser/parser.go
typ = p.tryIdentOrType() if p.tok == token.ASSIGN { p.next() values = p.parseList(true) } } case token.VAR: if p.tok != token.ASSIGN { typ = p.parseType() } if p.tok == token.ASSIGN { p.next() values = p.parseList(true) } default: panic("unreachable") } comment := p.expectSemi() spec := &ast.ValueSpec{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
src/net/mail/message.go
return (&addrParser{s: address, dec: p.WordDecoder}).parseSingleAddress() } // ParseList parses the given string as a list of comma-separated addresses // of the form "Gogh Fir <******@****.***>" or "******@****.***". func (p *AddressParser) ParseList(list string) ([]*Address, error) { return (&addrParser{s: list, dec: p.WordDecoder}).parseAddressList() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:31:03 UTC 2024 - 23.5K bytes - Viewed (0) -
src/net/mail/message_test.go
continue } if !reflect.DeepEqual([]*Address{addr}, test.exp) { t.Errorf("Parse (single) of %q: got %+v, want %+v", test.addrsStr, addr, test.exp) } } addrs, err := ap.ParseList(test.addrsStr) if err != nil { t.Errorf("Failed parsing (list) %q: %v", test.addrsStr, err) continue } if !reflect.DeepEqual(addrs, test.exp) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:31:03 UTC 2024 - 30.4K bytes - Viewed (0) -
src/strconv/doc.go
// s := strconv.Itoa(-42) // // These assume decimal and the Go int type. // // [ParseBool], [ParseFloat], [ParseInt], and [ParseUint] convert strings to values: // // b, err := strconv.ParseBool("true") // f, err := strconv.ParseFloat("3.1415", 64) // i, err := strconv.ParseInt("-42", 10, 64) // u, err := strconv.ParseUint("42", 10, 64) // // The parse functions return the widest type (float64, int64, and uint64),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 1.9K bytes - Viewed (0) -
src/strconv/atoi.go
// IntSize is the size in bits of an int or uint value. const IntSize = intSize const maxUint64 = 1<<64 - 1 // ParseUint is like [ParseInt] but for unsigned numbers. // // A sign prefix is not permitted. func ParseUint(s string, base int, bitSize int) (uint64, error) { const fnParseUint = "ParseUint" if s == "" { return 0, syntaxError(fnParseUint, s) } base0 := base == 0 s0 := s switch {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun May 05 00:24:26 UTC 2024 - 8.3K bytes - Viewed (0) -
src/cmd/trace/jsontrace.go
if startStr, endStr := r.FormValue("start"), r.FormValue("end"); startStr != "" && endStr != "" { var err error start, err = strconv.ParseInt(startStr, 10, 64) if err != nil { log.Printf("failed to parse start parameter %q: %v", startStr, err) return } end, err = strconv.ParseInt(endStr, 10, 64) if err != nil { log.Printf("failed to parse end parameter %q: %v", endStr, err) return } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 6.5K bytes - Viewed (0) -
src/strconv/example_test.go
v32 := "-354634382" if s, err := strconv.ParseInt(v32, 10, 32); err == nil { fmt.Printf("%T, %v\n", s, s) } if s, err := strconv.ParseInt(v32, 16, 32); err == nil { fmt.Printf("%T, %v\n", s, s) } v64 := "-3546343826724305832" if s, err := strconv.ParseInt(v64, 10, 64); err == nil { fmt.Printf("%T, %v\n", s, s) } if s, err := strconv.ParseInt(v64, 16, 64); err == nil { fmt.Printf("%T, %v\n", s, s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 22:57:37 UTC 2023 - 8.9K bytes - Viewed (0) -
internal/config/notify/parse.go
var host *xnet.Host host, err = xnet.ParseHost(s) if err != nil { break } brokers = append(brokers, *host) } if err != nil { return nil, err } queueLimitEnv := target.EnvKafkaQueueLimit if k != config.Default { queueLimitEnv = queueLimitEnv + config.Default + k } queueLimit, err := strconv.ParseUint(env.Get(queueLimitEnv, kv.Get(target.KafkaQueueLimit)), 10, 64)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 46.4K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go
p.PeriodType = &ValueType{ Type: "contentions", Unit: "count", } if p.Period, err = strconv.ParseInt(value, 0, 64); err != nil { return nil, fmt.Errorf("failed to parse attribute %s: %v", line, err) } case "contention/ms since reset": millis, err := strconv.ParseInt(value, 0, 64) if err != nil { return nil, fmt.Errorf("failed to parse attribute %s: %v", line, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 8.8K bytes - Viewed (0)