AR
Size: a a a
AR
k
k
D
ᗩᑎTIᗰOᑎY Nwosu
deleted. Reason: external link (?)ФП
package custom
type Custom []string
package other
type CustomStruct {
CustomField custom.Custom
}
/
package custom
type Custom []string
package other
type CustomStruct {
CustomField custom.Custom
}
/
ВВ
ВВ
NG
ФП
NG
package custom
type Custom []string
package other
type CustomStruct {
CustomField custom.Custom
}
NG
NG
/
package custom
type Custom []string
package other
type CustomStruct {
CustomField custom.Custom
}
x := someFunction() // Some value of an unknown type is stored in x now
switch x := x.(type) {
case bool:
fmt.Printf("boolean %t\n", x) // x has type bool
case int:
fmt.Printf("integer %d\n", x) // x has type int
case string:
fmt.Printf("pointer to boolean %s\n", x) // x has type string
default:
fmt.Printf("unexpected type %T\n", x) // %T prints whatever type x is
}
/
/