code: func importSorted(imports map[string]string) []Import {
  	names := make([]string, 0, len(imports))
  	for n := range imports {
  		names = append(names, n)
  	}
  	sort.Strings(names)
  	result := make([]Import, len(names))
  	for i, n := range names {
  		result[i] = Import{n, imports[n]}
  	}
  	return result
  }
docs: // importSorted converts a map name -> path to []Import sorted by name.