Define a generic Artifact object for now

This commit is contained in:
Ettore Di Giacinto
2019-11-08 19:57:04 +01:00
parent b2d305bb8d
commit 4ea8f26878
2 changed files with 21 additions and 2 deletions

View File

@@ -15,4 +15,23 @@
package compiler
type Artifact struct{}
type Artifact interface {
GetPath() string
SetPath(string)
}
type PackageArtifact struct {
Path string
}
func NewPackageArtifact(path string) Artifact {
return &PackageArtifact{Path: path}
}
func (a *PackageArtifact) GetPath() string {
return a.Path
}
func (a *PackageArtifact) SetPath(p string) {
a.Path = p
}