utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpSummonerName

func CleanUpSummonerName(summonerName string) string

CleanUpSummonerName removes all invalid chars such that a consistent Riot API request can be made for a summoner and such that this summoner can be found again

func GenerateStatusResponse

func GenerateStatusResponse(statusCode uint16, statusText string) string

GenerateStatusResponse generates a Json string with statusCode and statusMessage specified This can be used to have consistent error responses

func SplitNumericMatchVersion

func SplitNumericMatchVersion(version string) ([]uint32, error)

SplitNumericMatchVersion splits a match game version string into major, minor, patch, additional version, e.g., 9.1.3.123 or 5.74.11.432 are valid versions.

func SplitNumericVersion

func SplitNumericVersion(version string) ([]uint32, error)

SplitNumericVersion splits a version string into major, minor, patch version, e.g., 9.1.3 or 5.74.11 are valid versions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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