kos/util/reflect/reflect_test.go

16 lines
186 B
Go
Raw Normal View History

2023-08-07 14:57:16 +08:00
package reflect
import (
"testing"
"time"
)
func TestSet(t *testing.T) {
type hack struct {
Duration time.Duration
}
h := &hack{}
Set(h, "Duration", "5s")
t.Log(h.Duration)
}