Giter Site home page Giter Site logo

Merge duplicate struct definitions about json-to-go HOT 6 OPEN

mholt avatar mholt commented on August 18, 2024 2
Merge duplicate struct definitions

from json-to-go.

Comments (6)

michaelsanford avatar michaelsanford commented on August 18, 2024 7

I just encountered this and came to file this exact issue.

I'd be willing to take a look (given the tag).

Incidentally, this tool is a boon to anyone using a public API that produces extremely verbose structures. Thank you! ❤️ 🙏

from json-to-go.

Capable-Disk4147 avatar Capable-Disk4147 commented on August 18, 2024 1

@michaelsanford Are you still working on this?

from json-to-go.

mholt avatar mholt commented on August 18, 2024

@michaelsanford Yes, would be happy to have your contribution! Thank you!

from json-to-go.

michaelsanford avatar michaelsanford commented on August 18, 2024

@Capable-Disk4147 My gosh, this one slipped under my radar. Many apologies: I am not.

from json-to-go.

DCRichards avatar DCRichards commented on August 18, 2024

I should be able to take a look, but I'm AFK a bit ATM so if someone else is keen then feel free

from json-to-go.

emicklei avatar emicklei commented on August 18, 2024

I encountered the same problem, here is my simplified example for inspiration.

{
    "dimensionCounts": [
        {
            "label": {
                "de_de": "Mitarbeiter",
                "ja_jp": "\u5F93\u696D\u54E1"
            }
        },
        {
            "label": {
                "fr_fr": "Qualifications",
                "de_de": "Qualifikationen"
            }
        }
    ]
}
DimensionCounts []struct {
	Label struct {
		DeDe string `json:"de_de"`
		JaJp string `json:"ja_jp"`
		FrFr string `json:"fr_fr"`
	} `json:"label,omitempty"`
} `json:"dimensionCounts"`

I will have a look at the code later to see if I can help

from json-to-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.