StringSource converts a string and location description to a model.Source.
(contents, location string)
| 25 | |
| 26 | // StringSource converts a string and location description to a model.Source. |
| 27 | func StringSource(contents, location string) *Source { |
| 28 | return &Source{ |
| 29 | Source: common.NewStringSource(contents, location), |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | // Source represents the contents of a single source file. |
| 34 | type Source struct { |