mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 20:07:51 +00:00
remove encode/decodeURIs
This commit is contained in:
parent
fb8cc455b6
commit
eb5187bfd0
1 changed files with 0 additions and 22 deletions
22
uri.go
22
uri.go
|
|
@ -234,28 +234,6 @@ func decodeURI(i *internal.URI) URI {
|
|||
}
|
||||
}
|
||||
|
||||
func encodeURIs(a []URI) []*internal.URI {
|
||||
if len(a) == 0 {
|
||||
return nil
|
||||
}
|
||||
other := make([]*internal.URI, len(a))
|
||||
for i := range a {
|
||||
other[i] = encodeURI(a[i])
|
||||
}
|
||||
return other
|
||||
}
|
||||
|
||||
func decodeURIs(a []*internal.URI) []URI {
|
||||
if len(a) == 0 {
|
||||
return nil
|
||||
}
|
||||
other := make([]URI, len(a))
|
||||
for i := range a {
|
||||
other[i] = decodeURI(a[i])
|
||||
}
|
||||
return other
|
||||
}
|
||||
|
||||
// MarshalJSON marshals URI into a JSON-encoded byte slice.
|
||||
func (u *URI) MarshalJSON() ([]byte, error) {
|
||||
var output struct {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue