BuildDetails returns a string containing details about the Dgraph binary.
()
| 36 | |
| 37 | // BuildDetails returns a string containing details about the Dgraph binary. |
| 38 | func 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(` |
| 45 | Dgraph version : %v |
| 46 | Dgraph codename : %v |
| 47 | Dgraph SHA-256 : %x |
| 48 | Commit SHA-1 : %v |
| 49 | Commit timestamp : %v |
| 50 | Branch : %v |
| 51 | Go version : %v |
| 52 | jemalloc enabled : %v |
| 53 | GOMAXPROCS : %v |
| 54 | Num CPUs : %v |
| 55 | |
| 56 | For Dgraph official documentation, visit https://docs.dgraph.io |
| 57 | For 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. |
| 68 | func PrintVersion() { |
no test coverage detected