mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
Sources can be loaded from.
This commit is contained in:
parent
0f74cd324d
commit
aa4f982c42
@ -15,6 +15,10 @@ struct Source {
|
||||
|
||||
let URL: NSURL
|
||||
let type: String
|
||||
|
||||
func load() throws -> String {
|
||||
return try NSString(contentsOfURL: URL, encoding: NSUTF8StringEncoding) as String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user