Im having a problems with the default values for this struct
type textWrapper struct {
wrapper_symbol string default:"#"
filler_symbol string default:" "
lines_length int default:"80"
lines_per_screen int default:"10"
}
When checking in main if the default is set the value is 0
func main() {
message_wrapper := textWrapper{}
fmt.Println("Set Lines per Screen:", message_wrapper.lines_per_screen)
var welcome_message string = "Hello World\n What is up ???"
message_wrapper.wrapMessage(welcome_message)
}
Am I doing something wrong with the default values ?
Looked it up on many websites and it seems like the right way to do it ...
Thanks for the help