# tmux.ParseVersion

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/version.go#L72
- **Page:** https://libtmux.org/reference/go/tmux-parseversion/

```
tmux.ParseVersion(raw: string) -> (Version, error)
```

ParseVersion parses a raw tmux version token. It returns a [VersionError] matching [ErrInvalidVersion] when the token cannot be parsed.
