# tmux.ParseVersion

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/version.go#L73
- **Page:** https://libtmux.org/en/go/latest/reference/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.
