Skip to content

fix(go): correct struct generation#29

Open
sc0Vu wants to merge 2 commits intoccxt:masterfrom
sc0Vu:patch-go-struct
Open

fix(go): correct struct generation#29
sc0Vu wants to merge 2 commits intoccxt:masterfrom
sc0Vu:patch-go-struct

Conversation

@sc0Vu
Copy link
Copy Markdown

@sc0Vu sc0Vu commented Jun 3, 2025

IMHO, the struct should look like this.

# empty props
type Car struct {
}

# inherit car
type Toyota struct {
    Car
}

# with properties
type Toyota struct {
    Car
    Weight int64
    Height int64
    Speed int64
}

In this PR, I fixed the generation procedure for struct in GO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant