Comments (7)
thank you for your help
from goby.
hmm, I never thought about this before
do you mean, for example, having something like config.gb
in a Go application that uses Goby-defined dsl for easier configuration?
from goby.
that's really an interesting idea, thanks for sharing!
I believe you can do that under the current implementation, but I can't guarantee it'd be easy though as I didn't have this usage in mind when building it
btw, I just recalled that I did use pure Goby to build a dsl-based test framework (inspired by a popular Ruby testing framework called rspec) and load it like this. maybe you can do it in a similar fashion?
from goby.
Every component of Goby like parser, code generator and the VM is a go package, so you can import and use them in your application like the goby.go
does (not exactly the same though, but you should get the idea).
However, I personally don't think there's any practical reason to use Goby in a Go application, as it'll become an unnecessary abstraction layer for the application. Would you mind share the motivation behind this idea, I'm curious about it
from goby.
Like a groovy ,Make a pipline DSL
from goby.
yes
from goby.
np, happy to learn the new idea from you. thank you too
from goby.
Related Issues (20)
- Provide a script to run a single test HOT 2
- Go🅱️y HOT 2
- Discord Server HOT 3
- Support "||"
- Document how to access Go objects from Goby directly HOT 1
- Support for Array.new with an argument HOT 2
- support define_method define_singleton_method
- Some feedback on documentation
- Test and simplify Goby's lib path assignment
- Panic when attempting to use `last()` on an empty array HOT 3
- 增加UA自定义,不带特征值 HOT 1
- Add the user-defined UA, which can be changed by yourself HOT 1
- Migrate to GitHub Actions HOT 1
- 建议增加防apt检测 HOT 1
- https CURD ?
- Embedded use: Provide an object HOT 1
- 运行goby时报错 HOT 1
- Update the Goby Times with the following error HOT 1
- runtime error: invalid memory address ornil pointer dereference
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goby.