MCPcopy
hub / github.com/filebrowser/filebrowser / MarshalText

Method MarshalText

http/preview_enum.go:60–62  ·  view source on GitHub ↗

MarshalText implements the text marshaller method

()

Source from the content-addressed store, hash-verified

58
59// MarshalText implements the text marshaller method
60func (x PreviewSize) MarshalText() ([]byte, error) {
61 return []byte(x.String()), nil
62}
63
64// UnmarshalText implements the text unmarshaller method
65func (x *PreviewSize) UnmarshalText(text []byte) error {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected