Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor typo + custom attributes for JSON syntax fix #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MichalMoudry
Copy link

No description provided.

@MichalMoudry MichalMoudry changed the title Fix minor typo Fix minor typo + custom attributes for JSON syntax fix Jul 24, 2022
}

type Response struct {
Products []Product `json: "products"`
Products []Product `json:"products"`
}
```

What these annotations do is to say, in the JSON data, look for properties with these names and map them to the following property. Like in this example from above:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you describe annotations more in detail

@@ -27,7 +27,7 @@ You want to split up your app in many different files. Let's say you have the fo
helper.go
```

What you are saying above is that your program consists of many files and that you want code in the fiile *main.go* to use code from *helper.go* for example.
What you are saying above is that your program consists of many files and that you want code in the file *main.go* to use code from *helper.go* for example.

To handle such a case, you need the following:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To handle such a case, you need the following:
Change a to the

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.

2 participants