ByteSource converts a byte sequence and location description to a model.Source.
(contents []byte, location string)
| 20 | |
| 21 | // ByteSource converts a byte sequence and location description to a model.Source. |
| 22 | func ByteSource(contents []byte, location string) *Source { |
| 23 | return StringSource(string(contents), location) |
| 24 | } |
| 25 | |
| 26 | // StringSource converts a string and location description to a model.Source. |
| 27 | func StringSource(contents, location string) *Source { |