Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Foundation
- import PlaygroundSupport
- PlaygroundPage.current.needsIndefiniteExecution = true
- struct Gist: Decodable {
- // implement Gist struct
- // ...
- let files: [String: GistFile]
- let owner: Owner
- }
- struct Owner: Decodable {
- // implement Owner struct
- // ...
- }
- struct GistFile: Decodable {
- // implement GistFile struct
- // ...
- }
- func load() {
- // load gists data with URLSession.shared.dataTask and print loaded gists info
- // ...
- }
- load()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement