# workspace.BuildInto

- **Module:** workspace
- **Package:** github.com/libtmux/libtmux-go/workspace
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/workspace/builder.go#L79
- **Page:** https://libtmux.org/en/go/latest/workspace/reference/workspace-buildinto/

```
workspace.BuildInto(ctx: context.Context, session: tmux.Session, workspace: Workspace) -> error
```

BuildInto populates the initial session described by workspace. The session must already have been created from [Workspace.InitialSessionRequest]. BuildInto uses the session's existing server and transport; it neither creates a session nor opens or owns a connection.

BuildInto is not atomic. A failure leaves completed mutations in tmux.
