- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 123 for iota (0.1 sec)
-
src/html/template/error.go
// <img src="#ZgotmplZ"> // If the data comes from a trusted source, use content types to exempt it // from filtering: URL(`javascript:...`). const ( // OK indicates the lack of an error. OK ErrorCode = iota // ErrAmbigContext: "... appears in an ambiguous context within a URL" // Example: // <a href=" // {{if .C}} // /path/ // {{else}} // /search?q= // {{end}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 02 15:18:39 UTC 2023 - 9.3K bytes - Viewed (0) -
src/runtime/traceevent.go
// are suffixes reserved for scheduling resources. // // NOTE: If you add an event type, make sure you also update all // tables in this file! type traceEv uint8 const ( traceEvNone traceEv = iota // unused // Structural events. traceEvEventBatch // start of per-M batch of events [generation, M ID, timestamp, batch length] traceEvStacks // start of a section of the stack table [...traceEvStack]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 9.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/fuse.go
// fuseLate runs fuse(f, fuseTypePlain|fuseTypeIf|fuseTypeBranchRedirect). func fuseLate(f *Func) { fuse(f, fuseTypePlain|fuseTypeIf|fuseTypeBranchRedirect) } type fuseType uint8 const ( fuseTypePlain fuseType = 1 << iota fuseTypeIf fuseTypeIntInRange fuseTypeBranchRedirect fuseTypeShortCircuit ) // fuse simplifies control flow by joining basic blocks. func fuse(f *Func, typ fuseType) { for changed := true; changed; {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 20:45:54 UTC 2023 - 9K bytes - Viewed (0) -
src/compress/lzw/reader.go
"errors" "fmt" "io" ) // Order specifies the bit ordering in an LZW data stream. type Order int const ( // LSB means Least Significant Bits first, as used in the GIF file format. LSB Order = iota // MSB means Most Significant Bits first, as used in the TIFF and PDF // file formats. MSB ) const ( maxWidth = 12 decoderInvalidCode = 0xffff flushBuffer = 1 << maxWidth )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 14:39:39 UTC 2023 - 8K bytes - Viewed (0) -
src/internal/itoa/itoa.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Simple conversions to avoid depending on strconv. package itoa // Itoa converts val to a decimal string. func Itoa(val int) string { if val < 0 { return "-" + Uitoa(uint(-val)) } return Uitoa(uint(val)) } // Uitoa converts val to a decimal string. func Uitoa(val uint) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 11 02:53:50 UTC 2023 - 1.1K bytes - Viewed (0) -
src/strconv/itoa.go
if fastSmalls && 0 <= i && i < nSmalls && base == 10 { return small(int(i)) } _, s := formatBits(nil, uint64(i), base, i < 0, false) return s } // Itoa is equivalent to [FormatInt](int64(i), 10). func Itoa(i int) string { return FormatInt(int64(i), 10) } // AppendInt appends the string form of the integer i, // as generated by [FormatInt], to dst and returns the extended buffer.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 5.3K bytes - Viewed (0) -
src/net/dnsclient.go
ip := ParseIP(addr) if ip == nil { return "", &DNSError{Err: "unrecognized address", Name: addr} } if ip.To4() != nil { return itoa.Uitoa(uint(ip[15])) + "." + itoa.Uitoa(uint(ip[14])) + "." + itoa.Uitoa(uint(ip[13])) + "." + itoa.Uitoa(uint(ip[12])) + ".in-addr.arpa.", nil } // Must be IPv6 buf := make([]byte, 0, len(ip)*4+len("ip6.arpa.")) // Add it, in reverse, to the buffer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 5.7K bytes - Viewed (0) -
src/net/http/mapping_test.go
"strconv" "testing" ) func TestMapping(t *testing.T) { var m mapping[int, string] for i := 0; i < maxSlice; i++ { m.add(i, strconv.Itoa(i)) } if m.m != nil { t.Fatal("m.m != nil") } for i := 0; i < maxSlice; i++ { g, _ := m.find(i) w := strconv.Itoa(i) if g != w { t.Fatalf("%d: got %s, want %s", i, g, w) } } m.add(4, "4") if m.s != nil { t.Fatal("m.s != nil") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 17:47:07 UTC 2023 - 2.9K bytes - Viewed (0) -
src/strconv/doc.go
// of basic data types. // // # Numeric Conversions // // The most common numeric conversions are [Atoi] (string to int) and [Itoa] (int to string). // // i, err := strconv.Atoi("-42") // s := strconv.Itoa(-42) // // These assume decimal and the Go int type. // // [ParseBool], [ParseFloat], [ParseInt], and [ParseUint] convert strings to values: //
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/os/exec_plan9.go
if e != nil { return nil, &PathError{Op: "fork/exec", Path: name, Err: e} } return newPIDProcess(pid), nil } func (p *Process) writeProcFile(file string, data string) error { f, e := OpenFile("/proc/"+itoa.Itoa(p.Pid)+"/"+file, O_WRONLY, 0) if e != nil { return e } defer f.Close() _, e = f.Write([]byte(data)) return e } func (p *Process) signal(sig Signal) error { switch p.pidStatus() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 3.4K bytes - Viewed (0)