addclient

command
v0.6.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command addclient calls the addservice XPC service.

It is the Go equivalent of the client sketch in Apple's low-level XPC service template: create a session against the service, send a dictionary, read the reply, cancel the session.

The session only resolves if the named service is reachable from this process, which for an XPC service means running as the host application that contains the bundle. examples/xpc/build-bundle.sh installs this binary as that application's executable:

./examples/xpc/build-bundle.sh ~/tmp/AddDemo.app
~/tmp/AddDemo.app/Contents/MacOS/AddDemo -first 23 -second 19

Run from a plain shell it fails at Dial, which is the correct result rather than a hang.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL