Standard library / go/types
go/types.Package.MarkComplete()
Marks a package complete after populating its declarations. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
func (pkg *Package) MarkComplete()Working Example
Example Snippetgo
package main
import ( "fmt" "go/types")
func main() { p := types.NewPackage("p", "p"); p.MarkComplete(); fmt.Println(p.Complete()) }