parent
867d1ecf82
commit
930fe159bf
|
@ -0,0 +1,18 @@
|
||||||
|
package super_test
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"github.com/kercylan98/minotaur/utils/super"
|
||||||
|
"go.uber.org/atomic"
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestConvert(t *testing.T) {
|
||||||
|
type B struct {
|
||||||
|
nocmp [0]func()
|
||||||
|
v atomic.Value
|
||||||
|
}
|
||||||
|
var a = atomic.NewString("hello")
|
||||||
|
var b = super.Convert[*atomic.String, *B](a)
|
||||||
|
fmt.Println(b.v.Load())
|
||||||
|
}
|
Loading…
Reference in New Issue