mirror of
https://github.com/MontFerret/ferret.git
synced 2025-08-13 19:52:52 +02:00
Added a new example (#660)
This commit is contained in:
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 Binary(values), nil
|
||||
return values, nil
|
||||
}
|
||||
|
||||
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 {
|
||||
|
Reference in New Issue
Block a user