File size: 1,331 Bytes
d086025 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | # 9fans/go — Usage Guide
`9fans.net/go` provides Go packages for interacting with Plan 9 and ports of
common Plan 9 libraries and tools.
## Installation
```
go install 9fans.net/go/...@latest
```
Requires a Go toolchain (see `go.mod` for the module's Go version).
## What the module provides
| Area | Path | Purpose |
|------|------|---------|
| Plan 9 client libraries | `plan9/` | File-system (9P) client, plan9 command helpers (`plan9/client`, `plan9/srv9p`, ...) |
| Drawing primitives | `draw/` | Graphics/raster operations (`draw/memdraw`, ...) |
| Acme editor tooling | `acme/` | Programmatic access to the Acme editor |
| Command-line ports | `cmd/` | Ports of Plan 9 commands: `acme`, `devdraw`, `sam`, `samterm` |
| Games | `games/` | Plan 9 game ports |
| Tracing utility | `p9trace/` | Trace 9P conversations |
| Plumbing | `plumb/` | Plan 9 plumber message format support |
## Importing packages
Packages are imported by their full module path, e.g.:
```go
import "9fans.net/go/plan9/client"
```
Command binaries are installed with:
```
go install 9fans.net/go/cmd/sam@latest
go install 9fans.net/go/cmd/acme@latest
```
## Getting help
Full API reference: https://pkg.go.dev/9fans.net/go
Command-specific usage is available via the usual conventions
(`-h` flag or command documentation on pkg.go.dev).
|