Files
decort-golang-sdk/pkg/cloudbroker/session/ids.go
2026-09-04 17:02:31 +04:00

11 lines
243 B
Go

package session
// IDs gets array of PublicSessionIDs from ListSession struct
func (ls ListSession) IDs() []string {
res := make([]string, 0, len(ls.Data))
for _, s := range ls.Data {
res = append(res, s.PublicSessionID)
}
return res
}