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:
parent
847dda1f10
commit
cf7763e2ff
1
examples/screenshot.fql
Normal file
1
examples/screenshot.fql
Normal file
@ -0,0 +1 @@
|
|||||||
|
RETURN SCREENSHOT("https://www.montferret.dev/")
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user