File tree 1 file changed +5
-8
lines changed
src/cmd/go/internal/modload
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -239,13 +239,10 @@ func ModInfoProg(info string) []byte {
239
239
// Populate it in an init func so that it will work with go:linkname,
240
240
// but use a string constant instead of the name 'string' in case
241
241
// package main shadows the built-in 'string' with some local declaration.
242
- return []byte (fmt .Sprintf (`
243
- package main
244
- import _ "unsafe"
245
- //go:linkname __debug_modinfo__ runtime/debug.modinfo
246
- var __debug_modinfo__ = ""
247
- func init() {
248
- __debug_modinfo__ = %q
249
- }
242
+ return []byte (fmt .Sprintf (`package main
243
+ import _ "unsafe"
244
+ //go:linkname __debug_modinfo__ runtime/debug.modinfo
245
+ var __debug_modinfo__ = ""
246
+ func init() { __debug_modinfo__ = %q }
250
247
` , string (infoStart )+ info + string (infoEnd )))
251
248
}
You can’t perform that action at this time.
0 commit comments