Add text at some column
Complete golang struct statement.
Start file
// Product contains information about one product
type Product struct
ID int64 id
Name string name
Info string info,omitempty
Price float64 price
End file
// Product contains information about one product
type Product struct {
ID int64 `json:"id"`
Name string `json:"name"`
Info string `json:"info,omitempty"`
Price float64 `json:"price"`
}
View Diff
2,6c2,7
< type Product struct
< ID int64 id
< Name string name
< Info string info,omitempty
< Price float64 price
---
> type Product struct {
> ID int64 `json:"id"`
> Name string `json:"name"`
> Info string `json:"info,omitempty"`
> Price float64 `json:"price"`
> }
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 64 remaining solutions by signing in and submitting your own entry