MarshalTOML for Duration
This commit is contained in:
parent
282d99f511
commit
857f398f6b
@ -96,6 +96,12 @@ func (d *Duration) UnmarshalTOML(data []byte) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MarshalTOML for Duration
|
||||||
|
func (d Duration) MarshalTOML() (data []byte, err error) {
|
||||||
|
data = []byte(`"` + d.Duration.String() + `"`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Artifact is for .out-of-tree.toml
|
// Artifact is for .out-of-tree.toml
|
||||||
type Artifact struct {
|
type Artifact struct {
|
||||||
Name string
|
Name string
|
||||||
|
Loading…
Reference in New Issue
Block a user