# Server.format(_:addressing:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Formats.swift#L330
- **Page:** https://libtmux.org/reference/swift/server-format(_-addressing-)/

```
Server.format(_:addressing:)(template: String, addressing: String) -> String?
```

Evaluates a tmux format against a target named by id.

One `-t` serves every kind of target: tmux resolves the id to whichever
object the format asks about, so only the caller distinguishes them.
The typed overloads are the ones to reach for in Swift, where the
object is already in hand. This is for an id that arrived from
somewhere else — a command-line argument, or a request from another
process — with no object to go with it.

## Raises

- `TmuxError`
