-
Notifications
You must be signed in to change notification settings - Fork 93
/
version.go
37 lines (33 loc) · 1.17 KB
/
version.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
//
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.
//
//
package trpc
import "fmt"
// rule of trpc version
// 1. MAJOR version when you make incompatible API changes;
// 2. MINOR version when you add functionality in a backwards-compatible manner;
// 3. PATCH version when you make backwards-compatible bug fixes;
// 4. Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format;
// alpha 0.1.0-alpha
// beta 0.1.0-beta
// release candidate 0.1.0-rc
// release 0.1.0
const (
MajorVersion = 0
MinorVersion = 14
PatchVersion = 0
VersionSuffix = "-dev" // -alpha -alpha.1 -beta -rc -rc.1
)
// Version returns the version of trpc.
func Version() string {
return fmt.Sprintf("v%d.%d.%d%s", MajorVersion, MinorVersion, PatchVersion, VersionSuffix)
}