- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 71 for iota (0.04 sec)
-
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) -
src/net/interface_plan9.go
} func readInterface(i int) (*Interface, error) { ifc := &Interface{ Index: i + 1, // Offset the index by one to suit the contract Name: netdir + "/ipifc/" + itoa.Itoa(i), // Name is the full path to the interface path in plan9 } ifcstat := ifc.Name + "/status" ifcstatf, err := open(ifcstat) if err != nil { return nil, err } defer ifcstatf.close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 4.7K bytes - Viewed (0) -
src/os/writeto_linux_test.go
32769, } t.Run("sendfile-to-unix", func(t *testing.T) { for _, size := range sizes { t.Run(strconv.Itoa(size), func(t *testing.T) { testSendFile(t, "unix", int64(size)) }) } }) t.Run("sendfile-to-tcp", func(t *testing.T) { for _, size := range sizes { t.Run(strconv.Itoa(size), func(t *testing.T) { testSendFile(t, "tcp", int64(size)) }) } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 4K bytes - Viewed (0) -
src/crypto/tls/alert.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 4.3K bytes - Viewed (0) -
src/archive/tar/stat_unix.go
if u, ok := userMap.Load(h.Uid); ok { h.Uname = u.(string) } else if u, err := user.LookupId(strconv.Itoa(h.Uid)); err == nil { h.Uname = u.Username userMap.Store(h.Uid, h.Uname) } if g, ok := groupMap.Load(h.Gid); ok { h.Gname = g.(string) } else if g, err := user.LookupGroupId(strconv.Itoa(h.Gid)); err == nil { h.Gname = g.Name groupMap.Store(h.Gid, h.Gname) } } h.AccessTime = statAtime(sys)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 16:01:50 UTC 2024 - 3.2K bytes - Viewed (0) -
src/strconv/atoi.go
} func baseError(fn, str string, base int) *NumError { return &NumError{fn, stringslite.Clone(str), errors.New("invalid base " + Itoa(base))} } func bitSizeError(fn, str string, bitSize int) *NumError { return &NumError{fn, stringslite.Clone(str), errors.New("invalid bit size " + Itoa(bitSize))} } const intSize = 32 << (^uint(0) >> 63) // IntSize is the size in bits of an int or uint value. const IntSize = intSize
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/os/user/user.go
} // UnknownUserIdError is returned by [LookupId] when a user cannot be found. type UnknownUserIdError int func (e UnknownUserIdError) Error() string { return "user: unknown userid " + strconv.Itoa(int(e)) } // UnknownUserError is returned by [Lookup] when // a user cannot be found. type UnknownUserError string func (e UnknownUserError) Error() string { return "user: unknown user " + string(e) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 2.9K bytes - Viewed (0) -
src/runtime/trace2map_test.go
m.Reset() } } func TestTraceMapConcurrent(t *testing.T) { var m TraceMap var wg sync.WaitGroup for i := range 3 { wg.Add(1) go func(i int) { defer wg.Done() si := strconv.Itoa(i) var d = [...]string{ "a" + si, "b" + si, "aa" + si, "ab" + si, "ba" + si, "bb" + si, } ids := make([]uint64, 0, len(d)) for _, s := range d {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 10 18:52:49 UTC 2024 - 1.8K bytes - Viewed (0) -
src/net/http/triv.go
n int } // This makes Counter satisfy the [expvar.Var] interface, so we can export // it directly. func (ctr *Counter) String() string { ctr.mu.Lock() defer ctr.mu.Unlock() return strconv.Itoa(ctr.n) } func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) { ctr.mu.Lock() defer ctr.mu.Unlock() switch req.Method { case "GET": ctr.n++ case "POST": var buf strings.Builder
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.2K bytes - Viewed (0)