Perform Undefined whereas utilizing it from identical package deal
Unable to seek out out what goes incorrect right here.
Newly created 2 Recordsdata LibConfig and LibSQL, however LibConfig is undefined whereas calling a operate in LibConfig from LibSQL.
NOTE: i need to set up this entire challenge as package deal to native and use it in different tasks
go.mod file right here
module GitHub – pranavkv/golib_v1
go 1.18
require (
)
I can import all of the features from information aside from LibConfig.
Please assist to determine the problem
Recordsdata inside the identical listing are all a part of the identical package deal. Attempt eradicating the LibConfig.
prefix
Hello @skillian May you please let me know the way we are able to set up this domestically and use it in different tasks. Presently i needed to commit all of the adjustments to github and create a tag to make use of it in different tasks. Anyway to construct and set up domestically and use it ?
that is how i take advantage of it in one other challenge
equire (
GitHub – pranavkv/golib_v1 v1.0.1
)
You possibly can add to the opposite challenge’s go.mod file:
substitute github.com/pranavkv/golib_v1 => ../golib_v1
Assuming your golib_v1 is beside your different challenge folder, for instance:
./
├─ golib_v1/
└─ other_project/
└─ go.mod ← That is the place you add the substitute for ../golib_v1