MCPcopy Index your code
hub / github.com/coder/coder / Required

Method Required

enterprise/wsproxy/wsproxy.go:696–700  ·  view source on GitHub ↗
(name string, v any)

Source from the content-addressed store, hash-verified

694}
695
696func (e *optErrors) Required(name string, v any) {
697 if v == nil {
698 *e = append(*e, xerrors.Errorf("%s is required, got <nil>", name))
699 }
700}
701
702func (e *optErrors) NotEmpty(name string, v any) {
703 if reflect.ValueOf(v).IsZero() {

Calls 1

ErrorfMethod · 0.45