Documentation ¶
Index ¶
- Variables
- func DownloadComplier(cmd *cobra.Command, typ string) error
- func Exec(cmdroot *cobra.Command, commind ...string) error
- func Execute()
- func InitLink() error
- func IsVersion(typ string) bool
- func Link(typ string) error
- func MinorVersionNumberAndRevisedVersionNumber(s string) (int, int, error)
- func RmComplier(typ string) error
- func SetComplier(typ string) error
- func U_HOME_init()
- type ComplierDirInfo
- type SortComplierDirInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var Ext = ""
Functions ¶
func DownloadComplier ¶
DownloadComplier 下载并源码构建指定版本的编译器
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func MinorVersionNumberAndRevisedVersionNumber ¶
MinorVersionNumberAndRevisedVersionNumber 获取次要版本号和补丁版本号
func SetComplier ¶
func U_HOME_init ¶
func U_HOME_init()
Types ¶
type ComplierDirInfo ¶
ComplierDirInfo 编译器目录信息
type SortComplierDirInfo ¶
type SortComplierDirInfo []ComplierDirInfo
SortComplierDirInfo 为ComplierDirInfo切片实现 sort.Interface 接口
func GetComplierDirInfo ¶
func GetComplierDirInfo(root string) SortComplierDirInfo
GetComplierDirInfo 从root获取所有的编译器目录信息
func (SortComplierDirInfo) Find ¶
func (s SortComplierDirInfo) Find(version string) ComplierDirInfo
func (SortComplierDirInfo) Len ¶
func (s SortComplierDirInfo) Len() int
func (SortComplierDirInfo) Less ¶
func (s SortComplierDirInfo) Less(i, j int) bool
func (SortComplierDirInfo) Swap ¶
func (s SortComplierDirInfo) Swap(i, j int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.