MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / BuildDetails

Function BuildDetails

x/init.go:38–65  ·  view source on GitHub ↗

BuildDetails returns a string containing details about the Dgraph binary.

()

Source from the content-addressed store, hash-verified

36
37// BuildDetails returns a string containing details about the Dgraph binary.
38func BuildDetails() string {
39 licenseInfo := `Licensed under the Apache Public License 2.0`
40 buf := z.CallocNoRef(1, "X.BuildDetails")
41 jem := len(buf) > 0
42 z.Free(buf)
43
44 return fmt.Sprintf(`
45Dgraph version : %v
46Dgraph codename : %v
47Dgraph SHA-256 : %x
48Commit SHA-1 : %v
49Commit timestamp : %v
50Branch : %v
51Go version : %v
52jemalloc enabled : %v
53GOMAXPROCS : %v
54Num CPUs : %v
55
56For Dgraph official documentation, visit https://docs.dgraph.io
57For discussions about Dgraph , visit https://github.com/orgs/dgraph-io/discussions
58
59%s.
60© Istari Digital, Inc.
61
62`,
63 dgraphVersion, dgraphCodename, ExecutableChecksum(), lastCommitSHA, lastCommitTime, gitBranch,
64 runtime.Version(), jem, runtime.GOMAXPROCS(0), runtime.NumCPU(), licenseInfo)
65}
66
67// PrintVersion prints version and other helpful information if --version.
68func PrintVersion() {

Callers 4

root.goFile · 0.92
initFunction · 0.92
x.goFile · 0.85
PrintVersionFunction · 0.85

Calls 1

ExecutableChecksumFunction · 0.85

Tested by

no test coverage detected