1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-12 11:15:14 +02:00

Added a new example (#660)

This commit is contained in:
Tim Voronov 2021-09-19 20:25:22 -04:00 committed by GitHub
parent 847dda1f10
commit cf7763e2ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

1
examples/screenshot.fql Normal file
View File

@ -0,0 +1 @@
RETURN SCREENSHOT("https://www.montferret.dev/")

View File

@ -24,11 +24,14 @@ func NewBinaryFrom(stream io.Reader) (Binary, error) {
return nil, err return nil, err
} }
return Binary(values), nil return values, nil
} }
func (b Binary) MarshalJSON() ([]byte, error) { func (b Binary) MarshalJSON() ([]byte, error) {
return jettison.MarshalOpts([]byte(b), jettison.NoHTMLEscaping()) return jettison.MarshalOpts([]byte(b),
jettison.NoStringEscaping(),
jettison.NoCompact(),
)
} }
func (b Binary) Type() core.Type { func (b Binary) Type() core.Type {