MCPcopy Index your code
hub / github.com/frain-dev/convoy / GetVersion

Function GetVersion

type.go:71–82  ·  view source on GitHub ↗

TODO(subomi): This needs to be refactored for everywhere we depend on this code.

()

Source from the content-addressed store, hash-verified

69// TODO(subomi): This needs to be refactored for everywhere we depend
70// on this code.
71func GetVersion() string {
72 if Version != "" {
73 return strings.TrimSpace(Version)
74 }
75 v := "0.1.0"
76 f, err := readVersion(F)
77 if err != nil {
78 return v
79 }
80 v = strings.TrimSpace(string(f))
81 return v
82}
83
84func GetVersionFromFS(fs embed.FS) string {
85 v := "0.1.0"

Callers 15

parseAttemptFromResponseFunction · 0.92
ProcessNotificationsFunction · 0.92
IdentifyMethod · 0.92
CaptureMethod · 0.92
IdentifyMethod · 0.92
CaptureMethod · 0.92
trackMethod · 0.92
trackMethod · 0.92
NewClientFunction · 0.92
InitMethod · 0.92
SetHandlerMethod · 0.92
mainFunction · 0.92

Calls 1

readVersionFunction · 0.85

Tested by

no test coverage detected