code: func libImportPath(rootImportPath, typ string, libRootURLs []string) string {
  	// all library use '.',
  	// return nothing if it is not a library
  	if strings.Index(typ, ".") < 0 {
  		return ""
  	}
  
  	if strings.Index(typ, "json.RawMessage") >= 0 {
  		return `"encoding/json"`
  	}
  
  	// library name in the current document
  	libName := strings.Split(typ, ".")[0]
  
  	if libName == "goraml" { // special package name, reserved for goraml
  		return fmt.Sprintf(`"%s"`, joinImportPath(rootImportPath, "goraml"))
  	}
  
  	// raml file of this lib
  	libDir, libFile := globAPIDef.FindLibFile(commons.DenormalizePkgName(libName))
  
  	if libFile == "" {
  		return ""
  	}
  
  	libPath := libraries.JoinPath(libDir, libFile, libRootURLs)
  
  	importPath := joinImportPath(rootImportPath, path.Join(goLibPackageDir(libName, libPath), typeDir))
  	return aliasLibTypeImportPath(importPath)
  }
docs: // get library import path from a type