code: func (gr goResource) APILibImportPaths() []string {
  	ip := map[string]struct{}{}
  
  	// methods
  	for _, gm := range gr.Methods {
  		for _, v := range gm.Imports() {
  			ip[v] = struct{}{}
  		}
  	}
  
  	// return sorted array for predictable order
  	// we need it for unit test to always return same order
  	return commons.MapToSortedStrings(ip)
  }
docs: // APIImportPaths returns all packages that need to be imported
  // by the API implementation