func open(name string) (*Plugin, error) { … } func lookup(p *Plugin, symName string) (Symbol, error) { … } var pluginsMu … var plugins … // lastmoduleinit is defined in package runtime. func lastmoduleinit() (pluginpath string, syms map[string]any, inittasks []*initTask, errstr string) // doInit is defined in package runtime. // //go:linkname doInit runtime.doInit func doInit(t []*initTask) type initTask …