// Copyright 2014 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.packagelanguage// BaseLanguages returns the list of all supported base languages. It generates// the list by traversing the internal structures.funcBaseLanguages()[]Language{base:=make([]Language,0,NumLanguages)fori:=0;i<langNoIndexOffset;i++{// We included "und" already for the value 0.ifi!=nonCanonicalUnd{base=append(base,Language(i))}}i:=langNoIndexOffsetfor_,v:=rangelangNoIndex{fork:=0;k<8;k++{ifv&1==1{base=append(base,Language(i))}v>>=1i++}}returnbase}