2,626 matches across 25 files for TODO lang:Go
snippet_mode: grep · sorted by relevance
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/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/lex/slice.go GO 1 matches view file →
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.
src/cmd/cgo/gcc.go GO 8 matches · showing 5 view file →
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
src/cmd/cgo/internal/test/callback.go GO 1 matches view 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])
src/cmd/cgo/internal/test/callback_windows.go GO 2 matches view file →
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 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.