goadesign / goadesign/model

ElementHolder

Open
#355 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
467
Forks
23
Avg merge
6m
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.