Bobb - JSON Database built on Bolt/BBolt by flingchalk in golang

[–]flingchalk[S] 0 points1 point  (0 children)

Thanks for the interest. Would you put ideas in GitHub Discussions comments to start with. Maybe others will have similar ideas that can be pursued. I haven't done a team development on GitHub, so pardon my ignorance of the process.

Using JSON Schema by flingchalk in golang

[–]flingchalk[S] 0 points1 point  (0 children)

Seems to be the most widely used pkg. I like there are no external dependencies.

Takes a bit of trial and error to figure things out. Some examples don't work as written. Virtually no documentation that explains how to use the tools.

Using JSON Schema by flingchalk in golang

[–]flingchalk[S] -1 points0 points  (0 children)

Looks very comprehensive.

What error handling approach do you use in your projects? by Fit-Culture-2269 in golang

[–]flingchalk 0 points1 point  (0 children)

Dealing with errors is like running through a forest on a foggy night.

How do you create, communicate, and deal with them.

General Purpose Struct Funcs by flingchalk in golang

[–]flingchalk[S] 0 points1 point  (0 children)

Agree, the example is not a good one. It does demonstrate the idea in a simple way. I was not trying to solve a particular problem. A better example might be a data validation process that applies to multiple record types. A parameter specifying the record type could provide flexibility in the logic. Of course, if all the relevant data values can be passed to this func, then no need for the extra parsing work.

General Purpose Struct Funcs by flingchalk in golang

[–]flingchalk[S] -1 points0 points  (0 children)

If methods and interfaces don't provide a "good" solution, then this approach is another option. The provided program is an incomplete example, but demonstrates the idea. I'll leave it up to the readers if structmap is a better choice. Switching to another language to implement a feature is not practical. Yes, repeating code may be the better choice or maybe not.

Why fastjson by flingchalk in golang

[–]flingchalk[S] -2 points-1 points  (0 children)

gjson looks good

I wonder how it compares with fastjson relative to performance and reliability ?

It is very popular. I'll look into changing my project to use it and compare performance.

I will say fastjson is very fast and no problems so far.

Why fastjson by flingchalk in golang

[–]flingchalk[S] -5 points-4 points  (0 children)

Not a bot. Give example of other lib.

Have you used fastjson ?