Logo
Explore Help
Sign In
logos-messaging/nim-ffi
1
0
Fork 0
You've already forked nim-ffi
mirror of https://github.com/logos-messaging/nim-ffi.git synced 2026-06-21 08:49:34 +00:00
Code Issues Packages Projects Releases Wiki Activity
nim-ffi/examples/timer/go_bindings/example/go.mod

8 lines
74 B
Modula-2
Raw Normal View History

docs(examples): add native Go example exercising struct params A runnable main.go that constructs the timer with a TimerConfig, then calls Echo (struct param), Complex (slice-of-structs + slice + two optionals) and Schedule (three struct params) with idiomatic Go values — the methods the Go generator used to skip. The Makefile builds the dylib next to the package (cgo's ${SRCDIR} rpath finds it at runtime); README documents the Nim->Go type mapping. Verified end-to-end with `go run`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 11:03:22 +02:00
module example
go 1.21
require my_timer v0.0.0
replace my_timer => ../
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 25ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API