1
0

MarshalTOML for Duration

This commit is contained in:
dump_stack() 2019-08-19 19:01:29 +00:00
parent 282d99f511
commit 857f398f6b
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -96,6 +96,12 @@ func (d *Duration) UnmarshalTOML(data []byte) (err error) {
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
type Artifact struct {
Name string