code: func NewServer(apiDef *raml.APIDefinition, packageName, apiDocsDir, rootImportPath string,
  	withMain bool, targetDir string, libsRootURLs []string) *Server {
  	// global variables
  	rootImportPath = setRootImportPath(rootImportPath, targetDir)
  	globAPIDef = apiDef
  	globRootImportPath = rootImportPath
  	globLibRootURLs = libsRootURLs
  
  	return &Server{
  		apiDef:         apiDef,
  		PackageName:    packageName,
  		apiDocsDir:     apiDocsDir,
  		withMain:       withMain,
  		RootImportPath: rootImportPath,
  		TargetDir:      targetDir,
  		libsRootURLs:   libsRootURLs,
  	}
  }
docs: // NewServer creates a new Golang server