isLink reports whether the source creates a link: a URL, or a .url file.
()
| 77 | |
| 78 | // isLink reports whether the source creates a link: a URL, or a .url file. |
| 79 | func (s source) isLink() bool { |
| 80 | return s.kind == fromURL || (s.kind == fromFile && shared.IsShortcutFile(s.arg)) |
| 81 | } |
| 82 | |
| 83 | // artifactType returns the type of the source's artifact: link for a link, |
| 84 | // or for a document, the type from --type when typeFlag is set. Without it, a |
no test coverage detected