code: func (gr goResource) InterfaceImportPaths() []string {
  	ip := map[string]struct{}{
  		"net/http":               struct{}{},
  		"github.com/gorilla/mux": struct{}{},
  	}
  
  	for _, gm := range gr.Methods {
  		// if has middleware, we need to import middleware helper library
  		if len(gm.Middlewares) > 0 {
  			ip["github.com/justinas/alice"] = struct{}{}
  		}
  		for _, sb := range gm.SecuredBy {
  			if lib := libImportPath(globRootImportPath, sb.Name, globLibRootURLs); lib != "" {
  				ip[lib] = struct{}{}
  			}
  		}
  	}
  	// return sorted array for predictable order
  	// we need it for unit test to always return same order
  	return commons.MapToSortedStrings(ip)
  }
docs: // InterfaceImportPaths returns all packages imported by
  // this resource interface file