2,626 matches across 25 files for TODO lang:Go
snippet_mode: grep · sorted by relevance
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
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
492 }
493
494▶ // TODO(dsnet): Re-enable this when adding sparse support.
495 // See https://golang.org/issue/22735
496 /*
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}
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.
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) {
95 h.Devmajor, h.Devminor = int64(major), int64(minor)
96 default:
97▶ // TODO: Implement solaris (see https://golang.org/issue/8106)
98 }
99 }
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) {
345 testClose{nil},
346 },
347▶ // TODO(dsnet): Re-enable this test when adding sparse support.
348 // See https://golang.org/issue/22735
349 /*
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 {
77 }
78
79▶ // TODO: We may want to check if the archive roundtrips.
80 })
81}
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
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)
21)
22
23▶// TODO(adg): a more sophisticated test suite
24
25type WriteTest struct {
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)...)
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.
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")
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:
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 }
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)"},
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
59
60func (s *Slice) Col() int {
61▶ // TODO: Col is only called when defining a macro and all it cares about is increasing
62 // position to discover whether there is a blank before the parenthesis.
63 // We only get here if defining a macro inside a macro.
1059 // _cgoCheckPointer returns the untyped nil the type assertion we
1060 // are going to insert will fail. Easier to just skip nil arguments.
1061▶ // TODO: Note that this fails if nil is shadowed.
1062 if id, ok := arg.(*ast.Ident); ok && id.Name == "nil" {
1063 return false
· · ·
1098 return true
1099 case *ast.Ident:
1100▶ // TODO: Handle types defined within function.
1101 for _, d := range p.Decl {
1102 gd, ok := d.(*ast.GenDecl)
· · ·
1397 return false
1398 case *ast.Ident:
1399▶ // TODO: This ignores shadowing.
1400 switch t.Name {
1401 case "unsafe.Pointer", "bool", "byte",
· · ·
2239// gccErrors is called concurrently with different C programs.
2240func (p *Package) gccErrors(stdin []byte, extraArgs ...string) string {
2241▶ // TODO(rsc): require failure
2242 args := p.gccCmd(gccTmp())
2243
· · ·
2738 t.C.Set("__typeof__(unsigned char[%d])", t.Size)
2739 }
2740▶ t.Align = 1 // TODO: should probably base this on field alignment.
2741 typedef[name.Name] = t
2742 case "struct":
+ 3 more matches in this file
200 }
201 for i := 0; i < n; i++ {
202▶ f := runtime.FuncForPC(pc[i] - 1) // TODO: use runtime.CallersFrames
203 if f == nil {
204 t.Fatalf("expected non-nil Func for pc %d", pc[i])
63 }
64 if runtime.GOARCH != "amd64" {
65▶ // TODO: support SEH on other architectures.
66 t.Skip("skipping on non-amd64")
67 }
· · ·
93 switch fname {
94 case "goCallback":
95▶ // TODO(qmuntal): investigate why this function doesn't appear
96 // when using the external linker.
97 continue
Search syntax
auth login | both terms (AND is implicit) |
auth OR login | either term |
NOT path:vendor | exclude matches |
"exact phrase" | quoted exact match |
/func\s+Test/ | regex |
handler~1 | fuzzy (Levenshtein 1) |
file:*_test.go | filename glob |
path:pkg/auth/** | full path glob |
lang:go | language 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.