Share

No Title

Public

14 September 2017

Views: 14

package main

import "fmt"

type huy []struct {
i int
b bool
}

func main() {
q := []int{2, 3, 5, 7, 11, 13}
fmt.Println(q)

r := []bool{true, false, true, true, false, true}
fmt.Println(r)

s := huy{
{2, true},
{3, false},
{5, true},
{7, true},
{11, false},
{13, true},
}
fmt.Println(s)
}

Advertisement

Disable Third Party Ads