MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / imported

Function imported

loader/loader_test.go:813–820  ·  view source on GitHub ↗

Returns initially imported packages, as a string.

(prog *loader.Program)

Source from the content-addressed store, hash-verified

811
812// Returns initially imported packages, as a string.
813func imported(prog *loader.Program) string {
814 var pkgs []string
815 for _, info := range prog.Imported {
816 pkgs = append(pkgs, info.Pkg.Path())
817 }
818 sort.Strings(pkgs)
819 return strings.Join(pkgs, " ")
820}
821
822// Returns initially created packages, as a string.
823func created(prog *loader.Program) string {

Calls 2

PathMethod · 0.80
appendFunction · 0.50

Tested by

no test coverage detected