BDSDownloadLink

package module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 9 Imported by: 0

README

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 GetBDSDownloadPage

func GetBDSDownloadPage() ([]byte, error)

*

  • @description: 获取BDS下载页面内容
  • @return {*}

func GetUbuntu added in v1.1.0

func GetUbuntu() (string, string, error)

*

  • @description: 获取Ubuntu版本下载链接
  • @param {*}
  • @return {string} 下载链接
  • @return {string} 版本号
  • @return {error}

func GetWindows added in v1.1.0

func GetWindows() (string, string, error)

*

  • @description: 获取Windows版本下载链接
  • @param {*}
  • @return {string} 下载链接
  • @return {string} 版本号
  • @return {error}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL