[Go] GCD
Runtime: 36 ms, faster than 100.00% of Go online submissions for Check If It Is a Good Array.\nMemory Usage: 8.8 MB, less than 100.00% of Go online submissions 
Runtime: 36 ms, faster than 100.00% of Go online submissions for Check If It Is a Good Array.\nMemory Usage: 8.8 MB, less than 100.00% of Go online submissions for Check If It Is a Good Array.\n\n```\nfunc isGoodArray(nums []int) bool {\n    t := nums[0]\n    \n    for _, num := range nums{\n        t = gcd(num, t)\n        if t == 1{\n            return true\n        }\n    }\n    \n    return false\n}\n\nfunc gcd (a,b int) int{\n    if a < b{\n        return gcd(b,a)\n    }\n    \n    if a % b == 0{\n        return b\n    }\n    \n    return gcd(b, a%b)\n}
['Go']