mirror of
https://github.com/wader/fq.git
synced 2024-12-23 05:13:30 +03:00
funcs: Remove unsued string function
This commit is contained in:
parent
dee10dbb78
commit
08ec4f0eeb
@ -34,4 +34,3 @@ linters-settings:
|
||||
- G401
|
||||
- G501
|
||||
unused:
|
||||
go: "1.17"
|
||||
|
@ -17,7 +17,6 @@ import (
|
||||
"log"
|
||||
"math/big"
|
||||
"net/url"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/wader/fq/format"
|
||||
@ -613,20 +612,6 @@ func (i *Interp) hexdump(c interface{}, a []interface{}) gojq.Iter {
|
||||
return gojq.NewIter()
|
||||
}
|
||||
|
||||
func (i *Interp) string_(c interface{}, a []interface{}) interface{} {
|
||||
bb, err := toBuffer(c)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
sb := &strings.Builder{}
|
||||
if _, err := io.Copy(sb, bb); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return sb.String()
|
||||
}
|
||||
|
||||
func (i *Interp) bytes(c interface{}, a []interface{}) interface{} {
|
||||
bb, err := toBuffer(c)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user