Comments (4)
I guess the code block in this section is the culprit, right?. We should think about how to change the imports in the docs so that it's clear user needs to actually change them to their module path...
from objectbox-go.
I guess the code block in this section is the culprit, right?. We should think about how to change the imports in the docs so that it's clear user needs to actually change them to their module path...
I am not sure if this is a documentation only issue or not. I was able to work around the issue by using direct paths, but this is considered extremely bad form. The code we need to include should be generated into a vendor folder and documentation should be adjusted to identify the proper path from there, and vendoring needs to be turned on during installation, creating a go dependency issue.
This is probably not simply a documentation issue if done correctly due to changes in the language.
from objectbox-go.
... The code we need to include...
That's exactly the misunderstanding I think needs addressing in the docs. You don't need to include any code from "github.com/objectbox/objectbox-go/examples/tasks/internal/model" - the whole "example/tasks" folder is an example of a self-contained application. You can copy-paste it, initialize it as your own go module (picking your own name, for example, github.com/FriesK1/objectbox-playground
) and replace all the imports with the module name you've chosen (e.g. github.com/FriesK1/objectbox-playground
).
from objectbox-go.
Just to throw in my 2 cents on this..
I couldn't get the command:
go generate ./...
working until I tried to run the command:
go test github.com/objectbox/objectbox-go
Running that command, then informed me of the commands I need to run to get objectbox-go working:
go get github.com/objectbox/objectbox-go go get github.com/objectbox/objectbox-go/cmd/[email protected] go get github.com/objectbox/objectbox-go/examples/tasks/internal/[email protected]
After installing those packages
go generate ./...
worked, and I was able to work with the package.
I'm new to golang, and it took me a few hours of messing around, to finally give the go test command a try, as I assumed I could just jump straight in.
from objectbox-go.
Related Issues (20)
- Objectbox is "hanging dead" when trying to delete "parent" table (relation one-to-many) HOT 11
- Query: OR condition HOT 2
- Build fails on CentOS 7 due to gcc not running c99 mode HOT 1
- Self-assigned IDs HOT 3
- Maybe fix this ? HOT 3
- Encryption & static linking HOT 2
- Support sync-server
- Support "Flex" type
- Support "unique: replace on conflict"
- Installation fails under WSL2 HOT 2
- Repo is down - 502 Bad Gateway error HOT 3
- Cgo compile error with gcc on Windows 10 Pro: " undefined reference to `obx_txn_mark_success" HOT 6
- New Repo Creation [Objectbox-Rust] HOT 11
- Upgrade dependency "github.com/google/flatbuffers"
- Ignore some structs for code generation
- How to statically compile in golang so library is included?
- Version.LessThan() function not working properly
- Time property in inlined struct
- dyld Symbol not found: _obx_async on latest xcode, macos, and golang HOT 1
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 objectbox-go.