Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyPresent = errors.New("Virtual environment already exists.")
)
Functions ¶
This section is empty.
Types ¶
type PythonVenv ¶
type PythonVenv struct {
Path string
}
Structure representing a PythonVenv
func Create ¶
func Create(path string) (*PythonVenv, error)
Creates a virtual environment in the specified path using the latest Python version available in the system.
func (*PythonVenv) Activate ¶
func (g *PythonVenv) Activate() []string
Activates the virtual environment in the path.
func (*PythonVenv) Destroy ¶
func (g *PythonVenv) Destroy() error
Removes the virtual environment in the specified path.
Click to show internal directories.
Click to hide internal directories.