I have to modify a struct inside a vendor file. Suppose this is how the struct is inside the vendor file
type sampleStruct struct {
sampleStringvar1 string
sampleStringvar2 string
}
I need to add one more field to it like this
type sampleStruct struct {
sampleStringvar1 string
sampleStringvar2 string
sampleBoolVar bool
}
How can I achieve this? Is it good practise to modify vendor variables like this? If not what is the best way to do this?