yaml / yamlscript

Programming in YAML
MIT License
382 stars 31 forks source link

Implement Go binding #164

Closed xanni closed 2 months ago

xanni commented 3 months ago

Add a "go" directory containing a binding for Golang. Note that util/release-assets will need to be modified to create an additonal tag go/ys/v0.1.63 for the go get command to work correctly.

ingydotnet commented 3 months ago

A couple challenges here. We need to publish/install the libyamlscript headers so that GO can use them.

Also YAMLScript language bindings only load a specific version of a shared lib. We need to think about how best to do this.

xanni commented 3 months ago

You also probaly want "go get" to work as expected to set up the module, which will require meeting some of Go's naming conventions.

ingydotnet commented 3 months ago

@xanni I created this repo for testing the go-binding. It tests the HEAD commit on the go-binding branch which is also your fork's main HEAD.

Details in the ReadMe: https://github.com/ingydotnet/yamlscript-go-test-app#readme

go get works (via make go-get) but make go-build is complaining.

I think we are close. See if you can make it happier.