# workspace.Workspace.UnmarshalYAML

- **Module:** workspace.Workspace
- **Package:** github.com/libtmux/libtmux-go/workspace
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/workspace/workspace.go#L142
- **Page:** https://libtmux.org/en/go/latest/workspace/reference/workspace-workspace-unmarshalyaml/

```
workspace.Workspace.UnmarshalYAML(node: *yaml.Node) -> error
```

UnmarshalYAML decodes the workspace, then its shell_command_before, which accepts one command or a list.
