# workspace.BuildInto

- **Module:** workspace
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/workspace/builder.go#L79
- **Page:** https://libtmux.org/reference/go/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.
