summaryrefslogtreecommitdiffhomepage
path: root/resource
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-01-13 00:08:21 +0100
committerBjørn Erik Pedersen <[email protected]>2018-01-13 00:08:21 +0100
commit4dac1781e3436ddc5eefc6a9c62588e4335d8c71 (patch)
treea166d80d28fdc5d21894626fd9befa038ae69cc1 /resource
parent8a409894bdb0972e152a2eccc47a2738568e1cfc (diff)
downloadhugo-4dac1781e3436ddc5eefc6a9c62588e4335d8c71.tar.gz
hugo-4dac1781e3436ddc5eefc6a9c62588e4335d8c71.zip
resource: Add some GoDoc
Diffstat (limited to 'resource')
-rw-r--r--resource/resource.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/resource/resource.go b/resource/resource.go
index bb84aed79..bea53856e 100644
--- a/resource/resource.go
+++ b/resource/resource.go
@@ -35,11 +35,15 @@ var (
const DefaultResourceType = "unknown"
+// Source is an internal template and not meant for use in the templates. It
+// may change without notice.
type Source interface {
AbsSourceFilename() string
Publish() error
}
+// Cloner is an internal template and not meant for use in the templates. It
+// may change without notice.
type Cloner interface {
WithNewBase(base string) Resource
}