This parameter type ElementHolder allows almost anything to be passed in (for example the code in views.go doesn't check for the existence of elements within the structs that are inspected in subsidiary functions.
This lead to unexpected crashes as tests (e.g. views_test.go) were developed. More seriously it could lead to unexpected crashes/bugs if more code uses these functions. More defensive coding might be worth adopting.
This parameter type ElementHolder allows almost anything to be passed in (for example the code in views.go doesn't check for the existence of elements within the structs that are inspected in subsidiary functions.
This lead to unexpected crashes as tests (e.g. views_test.go) were developed. More seriously it could lead to unexpected crashes/bugs if more code uses these functions. More defensive coding might be worth adopting.