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

Method Scan

coderd/database/models.go:1095–1105  ·  view source on GitHub ↗
(src interface{})

Source from the content-addressed store, hash-verified

1093)
1094
1095func (e *AutomaticUpdates) Scan(src interface{}) error {
1096 switch s := src.(type) {
1097 case []byte:
1098 *e = AutomaticUpdates(s)
1099 case string:
1100 *e = AutomaticUpdates(s)
1101 default:
1102 return fmt.Errorf("unsupported scan type for AutomaticUpdates: %T", src)
1103 }
1104 return nil
1105}
1106
1107type NullAutomaticUpdates struct {
1108 AutomaticUpdates AutomaticUpdates `json:"automatic_updates"`

Callers

nothing calls this directly

Calls 2

AutomaticUpdatesTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected