16 lines
186 B
Go
16 lines
186 B
Go
|
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)
|
||
|
}
|