220 matches across 1 files for func main path:src/cmd/go/internal/modload/init.go
snippet_mode: grep · sorted by relevance
src/cmd/go/internal/modload/init.go GO 220 matches · showing 5 view file →
3// license that can be found in the LICENSE file.
4
5// Package modload provides module and package loading functionality.
6package modload
7
· · ·
40// TODO(#40775): See if these can be plumbed as explicit parameters.
41var (
42 // ExplicitWriteGoMod prevents LoadPackages, ListModules, and other functions
43 // from updating go.mod and go.sum or reporting errors when updates are
44 // needed. A package should set this if it would cause go.mod to be written
· · ·
56)
57
58// EnterModule resets MainModules and requirements to refer to just this one module.
59func EnterModule(ld *Loader, ctx context.Context, enterModroot string) {
60 ld.MainModules = nil // reset MainModules
· · ·
59func EnterModule(ld *Loader, ctx context.Context, enterModroot string) {
60 ld.MainModules = nil // reset MainModules
61 ld.requirements = nil
· · ·
60 ld.MainModules = nil // reset MainModules
61 ld.requirements = nil
62 ld.workFilePath = "" // Force module mode
+ 215 more matches in this file
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.