osinfo.go 721 B

123456789101112131415161718192021
  1. // Unless explicitly stated otherwise all files in this repository are licensed
  2. // under the Apache License Version 2.0.
  3. // This product includes software developed at Datadog (https://www.datadoghq.com/).
  4. // Copyright 2022 Datadog, Inc.
  5. // Package osinfo provides information about the current operating system release
  6. package osinfo
  7. // OSName returns the name of the operating system, including the distribution
  8. // for Linux when possible.
  9. func OSName() string {
  10. // call out to OS-specific implementation
  11. return osName()
  12. }
  13. // OSVersion returns the operating system release, e.g. major/minor version
  14. // number and build ID.
  15. func OSVersion() string {
  16. // call out to OS-specific implementation
  17. return osVersion()
  18. }