Something went wrong. Try again.
Go bindings for libghostty-vt. pkg.go.dev/go.mitchellh.com/libghostty
ghostty
Something went wrong. Try again.
add String/FromString for Key, Mods, MouseButton, FocusEvent master
Add human-friendly string conversion to the input enum types so they can be serialized to and parsed from text formats like JSON or configuration files. Each type gains a String() method returning the canonical snake_case name (e.g. "key_a", "arrow_down", "shift+ctrl", "middle", "gained") and a pointer-receiver FromString method that mutates the receiver. A top-level NewKeyFromString, NewModsFromString, NewMouseButtonFromString, and NewFocusEventFromString constructor is also provided as a more ergonomic alternative.
Author Mitchell Hashimoto Date (May 3, 2026, 9:57 PM UTC) Commit 438c6b8b 438c6b8b758de6ab5ea3dc761e02a2b5ea0c7a00 Parent 29fdb313 29fdb3130d7c823be9b0ad685c9c5523104a158f Change ID ltoupros ltouprosxluyvnqolozptuszyvnxstkr