gob/collection/json/json_slice.go

15 lines
262 B
Go
Raw Normal View History

2023-09-23 18:11:25 +00:00
package json
// Slice est un tableau dobjets JSON.
type Slice []Json
func (sl *Slice) Add(objects ...Json) Slice {
*sl = append(*sl, objects...)
return *sl
}
func (sl *Slice) Insert(objects ...Json) Slice {
*sl = append(objects, (*sl)...)
return *sl
}