examples/

directory
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT

Directories

Path Synopsis
accelerate
matmul command
Command matmul benchmarks matrix multiplication using Apple Accelerate BLAS (cblas_sgemm) versus a naive pure-Go implementation.
Command matmul benchmarks matrix multiplication using Apple Accelerate BLAS (cblas_sgemm) versus a naive pure-Go implementation.
appkit
alert command
Alert shows a native macOS alert dialog from the command line.
Alert shows a native macOS alert dialog from the command line.
alert-dialog command
Alert-dialog shows a modal NSAlert with two buttons and prints which was clicked.
Alert-dialog shows a modal NSAlert with two buttons and prints which was clicked.
counter command
Counter displays a window with a count label and buttons to increment or reset.
Counter displays a window with a count label and buttons to increment or reset.
file-picker command
File-picker opens an NSOpenPanel and prints the selected file paths.
File-picker opens an NSOpenPanel and prints the selected file paths.
hello-window command
Hello-window opens a macOS window displaying "Hello from Go!" in large text.
Hello-window opens a macOS window displaying "Hello from Go!" in large text.
menubar-clock command
Menubar-clock shows the current time in the macOS menu bar, updating every second.
Menubar-clock shows the current time in the macOS menu bar, updating every second.
pbd command
Pbd is a pasteboard tool, an improvement over pbcopy/pbpaste.
Pbd is a pasteboard tool, an improvement over pbcopy/pbpaste.
sf-symbols command
SF-symbols displays a grid of SF Symbols with various configurations.
SF-symbols displays a grid of SF Symbols with various configurations.
todo-app command
Todo-app is a multi-window todo list built entirely in Go.
Todo-app is a multi-window todo list built entirely in Go.
coreimage
imgfilter command
Command imgfilter processes images using Apple's CoreImage framework.
Command imgfilter processes images using Apple's CoreImage framework.
coreml
predict command
Command predict loads a CoreML model and prints its description as JSON.
Command predict loads a CoreML model and prints its description as JSON.
dispatch
parallel-work command
Parallel-work dispatches concurrent tasks using GCD groups and semaphores.
Parallel-work dispatches concurrent tasks using GCD groups and semaphores.
queues command
foundation
http-fetch command
nsdefaults command
Command nsdefaults reads and writes NSUserDefaults values.
Command nsdefaults reads and writes NSUserDefaults values.
process-info command
sysinfo command
Command sysinfo prints system information and optionally lists running applications.
Command sysinfo prints system information and optionally lists running applications.
user-defaults command
uuid-date command
metal
metal4-triangle command
metal4-triangle renders a rotating triangle using the Metal 4 API.
metal4-triangle renders a rotating triangle using the Metal 4 API.
naturallanguage
embedding command
Command embedding computes word distances and nearest neighbors using Apple's NaturalLanguage word embeddings.
Command embedding computes word distances and nearest neighbors using Apple's NaturalLanguage word embeddings.
ngrep command
Command ngrep searches lines for semantic similarity to a query using Apple's NaturalLanguage embeddings — a neural alternative to grep.
Command ngrep searches lines for semantic similarity to a query using Apple's NaturalLanguage embeddings — a neural alternative to grep.
nlp command
Command nlp provides Unix-native text analysis using Apple's NaturalLanguage framework.
Command nlp provides Unix-native text analysis using Apple's NaturalLanguage framework.
nsort command
Command nsort sorts lines by semantic similarity using Apple's NaturalLanguage sentence embeddings — a neural alternative to Unix sort.
Command nsort sorts lines by semantic similarity using Apple's NaturalLanguage sentence embeddings — a neural alternative to Unix sort.
objc
exception-handler command
Exception-handler demonstrates Objective-C exception handling from Go.
Exception-handler demonstrates Objective-C exception handling from Go.
screencapturekit
screenshot command
Command screenshot captures a screenshot of a display or window using the ScreenCaptureKit framework and saves it as a PNG file.
Command screenshot captures a screenshot of a display or window using the ScreenCaptureKit framework and saves it as a PNG file.
windowlist command
Command windowlist enumerates all windows, displays, and running applications using the ScreenCaptureKit framework and outputs the results as JSON.
Command windowlist enumerates all windows, displays, and running applications using the ScreenCaptureKit framework and outputs the results as JSON.
security
keychain command
Command keychain demonstrates macOS Security framework keychain operations using the generated security and corefoundation bindings.
Command keychain demonstrates macOS Security framework keychain operations using the generated security and corefoundation bindings.
uniformtypeidentifiers
file-types command
typeid command
Command typeid resolves Uniform Type Identifiers for file extensions, MIME types, and UTI strings.
Command typeid resolves Uniform Type Identifiers for file extensions, MIME types, and UTI strings.
virtualization
vminfo command
Command vminfo queries Apple Virtualization framework capabilities.
Command vminfo queries Apple Virtualization framework capabilities.
vision
face-detect command
Face-detect uses the Vision framework to detect faces in an image.
Face-detect uses the Vision framework to detect faces in an image.
ocr command
Command ocr extracts text from an image file using the Vision framework.
Command ocr extracts text from an image file using the Vision framework.
screenctx command
Command screenctx captures screen context by combining CGWindowListCopyWindowInfo with Vision OCR to produce an XML map of on-screen text attributed to the owning application.
Command screenctx captures screen context by combining CGWindowListCopyWindowInfo with Vision OCR to produce an XML map of on-screen text attributed to the owning application.
vndetect command
Command vndetect detects objects in images using the Vision framework.
Command vndetect detects objects in images using the Vision framework.
vnocr command
Command vnocr extracts text from images using the Vision framework.
Command vnocr extracts text from images using the Vision framework.

Jump to

Keyboard shortcuts

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