Guest User

Untitled

a guest
Dec 23rd, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import times
  2.  
  3. type
  4. Torrent* = object
  5. name*: string
  6. uploaded_at*: DateTime
  7. canonical_url*: string
  8. magnet_url*: string
  9. size*: string
  10. seeders*: int
  11. leechers*: int
  12.  
  13. proc newTorrent*(): Torrent =
  14. result = Torrent(uploaded_at: now())
Advertisement
Add Comment
Please, Sign In to add comment