https://github.com/ajsalemo/gosharedlib
Using .so's with Go - building with Go, C and cgo
https://github.com/ajsalemo/gosharedlib
c cgo gcc go golang shared-library
Last synced: 7 months ago
JSON representation
Using .so's with Go - building with Go, C and cgo
- Host: GitHub
- URL: https://github.com/ajsalemo/gosharedlib
- Owner: Ajsalemo
- Created: 2025-03-14T19:42:55.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-24T15:38:24.000Z (7 months ago)
- Last Synced: 2025-03-24T16:35:07.158Z (7 months ago)
- Topics: c, cgo, gcc, go, golang, shared-library
- Language: C
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gosharedlib
Using `.so`'s with Go - building with Go, C and `cgo`A small program that writes the local current time in a 24hour format to the terminal. This Go application uses `cgo` to invoke a shared library (`libchecktime.so`). The `/c` folder contains relevant C source code for `checktime`
- Usage: `LD_LIBRARY_PATH=./c go run .`
- Output example: `Current local time: 11:37:31`