Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 5,346 for Appendf (0.14 sec)

  1. src/net/smtp/auth.go

    }
    
    func (a *cramMD5Auth) Next(fromServer []byte, more bool) ([]byte, error) {
    	if more {
    		d := hmac.New(md5.New, []byte(a.secret))
    		d.Write(fromServer)
    		s := make([]byte, 0, d.Size())
    		return fmt.Appendf(nil, "%s %x", a.username, d.Sum(s)), nil
    	}
    	return nil, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/log/log.go

    	if flag&Lmsgprefix == 0 {
    		*buf = append(*buf, prefix...)
    	}
    	if flag&(Ldate|Ltime|Lmicroseconds) != 0 {
    		if flag&LUTC != 0 {
    			t = t.UTC()
    		}
    		if flag&Ldate != 0 {
    			year, month, day := t.Date()
    			itoa(buf, year, 4)
    			*buf = append(*buf, '/')
    			itoa(buf, int(month), 2)
    			*buf = append(*buf, '/')
    			itoa(buf, day, 2)
    			*buf = append(*buf, ' ')
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  3. src/cmd/trace/tasks.go

    			if summary.Start != nil {
    				rawEvents = append(rawEvents, summary.Start)
    			}
    			if summary.End != nil {
    				rawEvents = append(rawEvents, summary.End)
    			}
    			rawEvents = append(rawEvents, summary.Logs...)
    			for _, r := range summary.Regions {
    				if r.Start != nil {
    					rawEvents = append(rawEvents, r.Start)
    				}
    				if r.End != nil {
    					rawEvents = append(rawEvents, r.End)
    				}
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. src/fmt/fmt_test.go

    	}
    	if &b[0] != &got[0] {
    		t.Fatalf("Appendf allocated a new slice")
    	}
    }
    
    func TestAppend(t *testing.T) {
    	b := make([]byte, 100)
    	b = b[:copy(b, hello)]
    	got := Append(b, "world", ", ", 23)
    	if string(got) != appendResult {
    		t.Fatalf("Append returns %q not %q", got, appendResult)
    	}
    	if &b[0] != &got[0] {
    		t.Fatalf("Append allocated a new slice")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  5. api/go1.19.txt

    pkg flag, method (*FlagSet) TextVar(encoding.TextUnmarshaler, string, encoding.TextMarshaler, string) #45754
    pkg fmt, func Append([]uint8, ...interface{}) []uint8 #47579
    pkg fmt, func Appendf([]uint8, string, ...interface{}) []uint8 #47579
    pkg fmt, func Appendln([]uint8, ...interface{}) []uint8 #47579
    pkg go/doc, method (*Package) HTML(string) []uint8 #51082
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:29:41 UTC 2022
    - 17.9K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/build.go

    	// The init function has the drawback that packages may want to
    	// look at the module info in their init functions (see issue 29628),
    	// which won't work. See also issue 30344.
    	if isgccgo {
    		return fmt.Appendf(nil, `package main
    import _ "unsafe"
    //go:linkname __set_debug_modinfo__ runtime.setmodinfo
    func __set_debug_modinfo__(string)
    func init() { __set_debug_modinfo__(%q) }
    `, ModInfoData(info))
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/fmt/print.go

    	p.doPrintf(format, a)
    	s := string(p.buf)
    	p.free()
    	return s
    }
    
    // Appendf formats according to a format specifier, appends the result to the byte
    // slice, and returns the updated slice.
    func Appendf(b []byte, format string, a ...any) []byte {
    	p := newPrinter()
    	p.doPrintf(format, a)
    	b = append(b, p.buf...)
    	p.free()
    	return b
    }
    
    // These routines do not take a format string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    // driver applying analyzers to standard packages because "go vet" does
    // not do so with gccgo, and nor do some other build systems.
    var isPrint = stringSet{
    	"fmt.Appendf":  true,
    	"fmt.Append":   true,
    	"fmt.Appendln": true,
    	"fmt.Errorf":   true,
    	"fmt.Fprint":   true,
    	"fmt.Fprintf":  true,
    	"fmt.Fprintln": true,
    	"fmt.Print":    true,
    	"fmt.Printf":   true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modfetch/coderepo.go

    			if r.codeDir == "" && r.pathMajor == "" && semver.Major(v) > "v1" {
    				incompatible = append(incompatible, v)
    			}
    			continue
    		}
    
    		list = append(list, v)
    	}
    	semver.Sort(list)
    	semver.Sort(incompatible)
    
    	return r.appendIncompatibleVersions(ctx, tags.Origin, list, incompatible)
    }
    
    // appendIncompatibleVersions appends "+incompatible" versions to list if
    // appropriate, returning the final list.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/exec.go

    			cgoObjects = append(cgoObjects, a.Objdir+"_cgo_flags")
    		}
    		cgoObjects = append(cgoObjects, outObj...)
    		gofiles = append(gofiles, outGo...)
    
    		switch cfg.BuildBuildmode {
    		case "c-archive", "c-shared":
    			b.cacheCgoHdr(a)
    		}
    	}
    
    	var srcfiles []string // .go and non-.go
    	srcfiles = append(srcfiles, gofiles...)
    	srcfiles = append(srcfiles, sfiles...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
Back to top