proxy.golang.org : github.com/technosophos/ottomatic
Package ottomatic binds Go values to JavaScript objects. Following the tradition of the Go's native `encoding/*` packages, this package uses Go struct annotations to bind a Go type (even complex types) to the Otto JavaScript runtime. The simplest way to use this library is to annotate your structs and then use the ottomatic.Register function: THE 'otto' ANNOTATION The `otto` annotation follows the general tag convention used in Go: NAME is required, and all PARAMs are optional. All unknown params are silently ignored. If no annotation is specified and the field is exportable (i.e. the Go field name starts with an uppercase letter), the field will be exported to the JavaScript runtime using its Go name.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/technosophos/ottomatic
License: MIT
Latest release: over 8 years ago
First release: over 8 years ago
Namespace: github.com/technosophos
Dependent repositories: 1
Stars: 3 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 15 days ago