detached 5adc58c

README.md: We support NetBSD now! (#302)

commit
5adc58cca1d41ddc08ee2d25daf5f69c695ece28
author
TotallyGamerJet · · 2025-03-09 14:04 UTC
committer
GitHub · · 2025-03-09 14:04 UTC
parent
3980773
signature
GPG UnverifiedB5690EEEBB952194 The key is unknown
1 file · +4 -1
M README.md +4 -1
@@ -29,13 +29,14 @@ except for float arguments and return values.
2929 - **FreeBSD**: amd64, arm64
3030 - **Linux**: amd64, arm64
3131 - **macOS / iOS**: amd64, arm64
32+- **NetBSD**: amd64, arm64
3233 - **Windows**: 386*, amd64, arm*, arm64
3334
3435 `*` These architectures only support SyscallN and NewCallback
3536
3637 ## Example
3738
38-The example below only showcases purego use for macOS and Linux. The other platforms require special handling which can
39+The example below only showcases purego use for macOS, NetBSD and Linux. The other platforms require special handling which can
3940 be seen in the complete example at [examples/libc](https://github.com/ebitengine/purego/tree/main/examples/libc) which supports Windows and FreeBSD.
4041
4142 ```go
@@ -54,6 +55,8 @@ func getSystemLibrary() string {
5455 return "/usr/lib/libSystem.B.dylib"
5556 case "linux":
5657 return "libc.so.6"
58+ case "netbsd":
59+ return "libc.so"
5760 default:
5861 panic(fmt.Errorf("GOOS=%s is not supported", runtime.GOOS))
5962 }
@@ -29,13 +29,14 @@ except for float arguments and return values.
29 - **FreeBSD**: amd64, arm6429 - **FreeBSD**: amd64, arm64
30 - **Linux**: amd64, arm6430 - **Linux**: amd64, arm64
31 - **macOS / iOS**: amd64, arm6431 - **macOS / iOS**: amd64, arm64
32+- **NetBSD**: amd64, arm64
32 - **Windows**: 386*, amd64, arm*, arm6433 - **Windows**: 386*, amd64, arm*, arm64
33 34
34 `*` These architectures only support SyscallN and NewCallback35 `*` These architectures only support SyscallN and NewCallback
35 36
36 ## Example37 ## Example
37 38
38-The example below only showcases purego use for macOS and Linux. The other platforms require special handling which can39+The example below only showcases purego use for macOS, NetBSD and Linux. The other platforms require special handling which can
39 be seen in the complete example at [examples/libc](https://github.com/ebitengine/purego/tree/main/examples/libc) which supports Windows and FreeBSD.40 be seen in the complete example at [examples/libc](https://github.com/ebitengine/purego/tree/main/examples/libc) which supports Windows and FreeBSD.
40 41
41 ```go42 ```go
@@ -54,6 +55,8 @@ func getSystemLibrary() string {
54 return "/usr/lib/libSystem.B.dylib"55 return "/usr/lib/libSystem.B.dylib"
55 case "linux":56 case "linux":
56 return "libc.so.6"57 return "libc.so.6"
58+ case "netbsd":
59+ return "libc.so"
57 default:60 default:
58 panic(fmt.Errorf("GOOS=%s is not supported", runtime.GOOS))61 panic(fmt.Errorf("GOOS=%s is not supported", runtime.GOOS))
59 }62 }

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 102

↑↓ moveenter openesc close