package builder import ( "fmt" "testing" ) func TestConcreateBuilder_GetResult(t *testing.T) { builder := NewConcreteBuilder() fmt.Println("原值:", builder) director := NewDirector(&builder) director.Construct() fmt.Println("后值:", builder.GetResult()) }