Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
type Example struct { field1 string field2 string } func main { myStruct := Example{field1: "test1", field2: "test1"} custom_field := "field1" fmt.Println(myStruct.custom_field) }