Files
greenlight/internal/data/runtime.go
lbenedar b4ea20d1d3 ch3.5
2026-03-10 15:50:42 +03:00

16 lines
238 B
Go

package data
import (
"fmt"
"strconv"
)
type Runtime int32
func (r Runtime) MarshalJSON() ([]byte, error) {
jsonValue := fmt.Sprintf("%d mins", r)
quotedJSONValue := strconv.Quote(jsonValue)
return []byte(quotedJSONValue), nil
}