code: func (gl *goLibrary) generate() error {
  	// generate all Type structs
  	if err := generateStructs(gl.Types, gl.targetDir()); err != nil {
  		return err
  	}
  
  	// security schemes
  	if err := generateSecurity(gl.SecuritySchemes, gl.targetDir(), gl.PackageName); err != nil {
  		return err
  	}
  
  	// included libraries
  	for name, ramlLib := range gl.Libraries {
  		childLib := newGoLibrary(name, ramlLib, gl.targetDir(), gl.rootTargetDir, globLibRootURLs)
  		if err := childLib.generate(); err != nil {
  			return err
  		}
  	}
  	return nil
  }
docs: // generate code of this library