2024-10-22 15:18:05 +00:00
|
|
|
package metadata
|
|
|
|
|
2024-11-08 11:31:56 +00:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"strings"
|
|
|
|
)
|
2024-10-27 21:46:58 +00:00
|
|
|
|
2024-11-08 11:31:56 +00:00
|
|
|
func getVersion() string {
|
|
|
|
content, _ := os.ReadFile("version.txt")
|
|
|
|
version := strings.TrimSpace(string(content))
|
|
|
|
|
|
|
|
return version
|
|
|
|
}
|
|
|
|
|
|
|
|
var GoTomatoVersion = getVersion() // The GoTomato version
|
2024-10-30 06:37:14 +00:00
|
|
|
var ProtocolVersion = strings.Split(GoTomatoVersion, ".")[0] // The protocol version
|