README
¶
Go-BDS-Download-Link
Golang包,用于获取Bedrock Server最新版本下载链接和版本号
如何使用
安装
go get -u github.com/BlackBEDevelopment/Go-BDS-Download-Link
例子
package main
import (
"fmt"
"github.com/BlackBEDevelopment/Go-BDS-Download-Link"
)
func main() {
DownloadLink, Version, err := BDSDownloadLink.GetWindows()
if err != nil {
fmt.Println(err)
return
}
fmt.Println(DownloadLink, Version)
}
Documentation
¶
Overview ¶
* @Author: NyanCatda * @Date: 2021-12-28 20:54:59 * @LastEditTime: 2022-07-30 23:56:06 * @LastEditors: NyanCatda * @Description: 获取BDS最新版本下载链接和版本号 * @FilePath: \Go-BDS-Download-Link\BDSDownloadLink.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUbuntu ¶ added in v1.1.0
*
- @description: 获取Ubuntu版本下载链接
- @param {*}
- @return {string} 下载链接
- @return {string} 版本号
- @return {error}
func GetWindows ¶ added in v1.1.0
*
- @description: 获取Windows版本下载链接
- @param {*}
- @return {string} 下载链接
- @return {string} 版本号
- @return {error}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.