3,869 matches across 25 files for TODO
snippet_mode: grep · sorted by relevance
api/go1.7.txt PLAIN TEXT 1 matches view file →
5pkg compress/flate, const HuffmanOnly ideal-int
6pkg context, func Background() Context
7pkg context, func TODO() Context
8pkg context, func WithCancel(Context) (Context, CancelFunc)
9pkg context, func WithDeadline(Context, time.Time) (Context, CancelFunc)
doc/README.md MARKDOWN 3 matches view file →
25
26should have a corresponding file named `doc/next/6-stdlib/99-minor/net/http/12345.md`.
27At a minimum, that file should contain either a full sentence or a TODO,
28ideally referring to a person with the responsibility to complete the note.
29
· · ·
36```
37If an accepted proposal is mentioned in a CL but not in the release notes, it will be
38flagged as a TODO by the automated tooling. That is true even for proposals that add API.
39
40Use the following forms in your markdown:
· · ·
59in `doc/next`.
60
61As a release cycle nears completion, run `relnote todo` to get a list of
62unfinished release note work.
63
misc/cgo/gmp/gmp.go GO 1 matches view file →
184func (z *Int) SetInt64(x int64) *Int {
185 z.doinit()
186 // TODO(rsc): more work on 32-bit platforms
187 C.mpz_set_si(&z.i[0], C.long(x))
188 return z
misc/chrome/gophertool/gopher.js JAVASCRIPT 1 matches view file →
33
34 if (pkgRE.test(t)) {
35 // TODO: make this smarter, using a list of packages + substring matches.
36 // Get the list from godoc itself in JSON format?
37 return "https://golang.org/pkg/" + t;
misc/go_android_exec/main.go GO 1 matches view file →
5// This wrapper uses syscall.Flock to prevent concurrent adb commands,
6// so for now it only builds on platforms that support that system call.
7// TODO(#33974): use a more portable library for file locking.
8
9//go:build darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd
src/archive/tar/common.go GO 1 matches view file →
492 }
493
494 // TODO(dsnet): Re-enable this when adding sparse support.
495 // See https://golang.org/issue/22735
496 /*
src/archive/tar/example_test.go GO 2 matches view file →
23 {"readme.txt", "This archive contains some text files."},
24 {"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
25 {"todo.txt", "Get animal handling license."},
26 }
27 for _, file := range files {
· · ·
67 // Geoffrey
68 // Gonzo
69 // Contents of todo.txt:
70 // Get animal handling license.
71}
src/archive/tar/fuzz_test.go GO 1 matches view file →
74 }
75
76 // TODO: We may want to check if the archive roundtrips. This would require
77 // taking into account addition of the two zero trailer blocks that Writer.Close
78 // appends.
src/archive/tar/reader.go GO 1 matches view file →
679// This always writes the last byte to ensure w is the right size.
680//
681// TODO(dsnet): Re-export this when adding sparse file support.
682// See https://golang.org/issue/22735
683func (tr *Reader) writeTo(w io.Writer) (int64, error) {
src/archive/tar/stat_unix.go GO 1 matches view file →
95 h.Devmajor, h.Devminor = int64(major), int64(minor)
96 default:
97 // TODO: Implement solaris (see https://golang.org/issue/8106)
98 }
99 }
src/archive/tar/writer.go GO 4 matches view file →
132 realName, realSize := hdr.Name, hdr.Size
133
134 // TODO(dsnet): Re-enable this when adding sparse support.
135 // See https://golang.org/issue/22735
136 /*
· · ·
214 }
215
216 // TODO(dsnet): Re-enable this when adding sparse support.
217 // See https://golang.org/issue/22735
218 /*
· · ·
256 f.formatNumeric(blk.toGNU().changeTime(), hdr.ChangeTime.Unix())
257 }
258 // TODO(dsnet): Re-enable this when adding sparse support.
259 // See https://golang.org/issue/22735
260 /*
· · ·
497// This always reads the last byte to ensure r is the right size.
498//
499// TODO(dsnet): Re-export this when adding sparse file support.
500// See https://golang.org/issue/22735
501func (tw *Writer) readFrom(r io.Reader) (int64, error) {
src/archive/tar/writer_test.go GO 1 matches view file →
345 testClose{nil},
346 },
347 // TODO(dsnet): Re-enable this test when adding sparse support.
348 // See https://golang.org/issue/22735
349 /*
src/archive/zip/example_test.go GO 1 matches view file →
28 {"readme.txt", "This archive contains some text files."},
29 {"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
30 {"todo.txt", "Get animal handling licence.\nWrite more examples."},
31 }
32 for _, file := range files {
src/archive/zip/fuzz_test.go GO 1 matches view file →
77 }
78
79 // TODO: We may want to check if the archive roundtrips.
80 })
81}
src/archive/zip/reader_test.go GO 1 matches view file →
838 b[0x9d]++
839
840 // TODO(bradfitz): add a new test that only corrupts
841 // one of these values, and verify that that's also an
842 // error. Currently, the reader code doesn't verify the
src/archive/zip/struct.go GO 1 matches view file →
270// timeToMsDosTime converts a time.Time to an MS-DOS date and time.
271// The resolution is 2s.
272// See: https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-filetimetodosdatetime
273func timeToMsDosTime(t time.Time) (fDate uint16, fTime uint16) {
274 fDate = uint16(t.Day() + int(t.Month())<<5 + (t.Year()-1980)<<9)
src/archive/zip/writer_test.go GO 1 matches view file →
21)
22
23// TODO(adg): a more sophisticated test suite
24
25type WriteTest struct {
src/bytes/buffer.go GO 1 matches view file →
251 }
252 }()
253 // TODO(http://golang.org/issue/51462): We should rely on the append-make
254 // pattern so that the compiler can call runtime.growslice. For example:
255 // return append(b, make([]byte, n)...)
src/bytes/bytes.go GO 2 matches view file →
788
789// isSeparator reports whether the rune could mark a word boundary.
790// TODO: update when package unicode captures more of the properties.
791func isSeparator(r rune) bool {
792 // ASCII alphanumerics and underscore are not separators
· · ·
1389 // Experiments (using IndexPeriodic) suggest
1390 // the cutover is about 16 byte skips.
1391 // TODO: if large prefixes of sep are matching
1392 // we should cutover at even larger average skips,
1393 // because Equal becomes that much more expensive.
src/cmd/api/api_test.go GO 1 matches view file →
55 }
56
57 // TODO(gri) remove extra pkg directory eventually
58 goldenFile := filepath.Join("testdata", "src", "pkg", fi.Name(), "golden.txt")
59 w := NewWalker(nil, "testdata/src/pkg")
src/cmd/api/main_test.go GO 2 matches view file →
434 ctags[tag] = true
435 }
436 // TODO: ReleaseTags (need to load default)
437 key := dir
438
· · ·
774 case types.UntypedRune:
775 // "ideal-char" for compatibility with old tool
776 // TODO(gri) change to "ideal-rune"
777 s = "ideal-char"
778 case types.UntypedFloat:
src/cmd/asm/internal/asm/asm.go GO 2 matches view file →
23)
24
25// TODO: configure the architecture
26
27var testOut *strings.Builder // Gathers output when testing.
· · ·
839 prog.To = a[2]
840 default:
841 p.errorf("TODO: implement three-operand instructions for this architecture")
842 return
843 }
src/cmd/asm/internal/asm/operand_test.go GO 1 matches view file →
358 {"(BX)", "(BX)"},
359 {"(SP)", "(SP)"},
360 {"*AX", "AX"}, // TODO: Should make * illegal here; a simple alias for JMP AX.
361 {"*runtime·_GetStdHandle(SB)", "*runtime._GetStdHandle(SB)"},
362 {"-(4+12)(DI)", "-16(DI)"},
src/cmd/asm/internal/asm/parse.go GO 3 matches view file →
4
5// Package asm implements the parser and instruction generator for the assembler.
6// TODO: Split apart?
7package asm
8
· · ·
654 return true
655 }
656 // R(1)<<... Ugly check. TODO: Rethink how we handle ARM register shifts to be
657 // less special.
658 if p.peek() != '(' || len(p.input)-p.inputPos < 4 {
· · ·
1202 a.Reg = r1
1203 if r2 != 0 {
1204 // TODO: Consistency in the encoding would be nice here.
1205 if p.arch.InFamily(sys.ARM, sys.ARM64) {
1206 // Special form
src/cmd/asm/internal/asm/testdata/386.s ASSEMBLY 3 matches view file →
44 JMP label // JMP 16
45 CALL foo(SB)
46// CALL (AX*4) // TODO: This line is silently dropped on the floor!
47 CALL foo+4(SB)(AX*4)
48 CALL *4(SP) // CALL 4(SP)
· · ·
49 CALL *(AX) // CALL (AX)
50 CALL *(SP) // CALL (SP)
51// CALL *(AX*4) // TODO: This line is silently dropped on the floor!
52 CALL *(AX)(AX*4) // CALL (AX)(AX*4)
53 CALL 4(SP)
· · ·
54 CALL (AX)
55 CALL (SP)
56// CALL (AX*4) // TODO: This line is silently dropped on the floor!
57 JCS 2(PC)
58 JMP (AX)(AX*4)
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.