diff options
author | Manuel Palenzuela Merino <manuel.palenzuela@datadoghq.com> | 2024-12-05 11:07:35 +0100 |
---|---|---|
committer | Manuel Palenzuela Merino <manuel.palenzuela@datadoghq.com> | 2024-12-05 11:08:17 +0100 |
commit | ee3c0aa3d71a857ae7fb60f1b98cf129ee6ad71d (patch) | |
tree | 8aeaa3b76be6cdcf326acf3627b3d283a8b2c372 /main/osinfo/osinfo.go | |
parent | Update README.md (diff) | |
download | test-repo-ee3c0aa3d71a857ae7fb60f1b98cf129ee6ad71d.tar.gz test-repo-ee3c0aa3d71a857ae7fb60f1b98cf129ee6ad71d.tar.bz2 test-repo-ee3c0aa3d71a857ae7fb60f1b98cf129ee6ad71d.zip |
Add tests
Diffstat (limited to 'main/osinfo/osinfo.go')
-rw-r--r-- | main/osinfo/osinfo.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/main/osinfo/osinfo.go b/main/osinfo/osinfo.go new file mode 100644 index 0000000..7519a91 --- /dev/null +++ b/main/osinfo/osinfo.go @@ -0,0 +1,21 @@ +// Unless explicitly stated otherwise all files in this repository are licensed +// under the Apache License Version 2.0. +// This product includes software developed at Datadog (https://www.datadoghq.com/). +// Copyright 2022 Datadog, Inc. + +// Package osinfo provides information about the current operating system release +package osinfo + +// OSName returns the name of the operating system, including the distribution +// for Linux when possible. +func OSName() string { + // call out to OS-specific implementation + return osName() +} + +// OSVersion returns the operating system release, e.g. major/minor version +// number and build ID. +func OSVersion() string { + // call out to OS-specific implementation + return osVersion() +} |