Example loadable plugin
Source
1
1
/*
2
-
** Copyright (C) 2001-2024 Zabbix SIA
2
+
** Copyright (C) 2001-2025 Zabbix SIA
3
3
**
4
4
** Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
5
** documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
6
** rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
7
** permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
8
**
9
9
** The above copyright notice and this permission notice shall be included in all copies or substantial portions
10
10
** of the Software.
11
11
**
12
12
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
45
45
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
46
46
SOFTWARE.
47
47
`
48
48
49
49
//nolint:gochecknoglobals,revive // required ALL_CAPS by build scripts
50
50
var (
51
51
PLUGIN_VERSION_MAJOR = 7
52
52
PLUGIN_VERSION_MINOR = 2
53
53
PLUGIN_VERSION_PATCH = 0
54
54
PLUGIN_VERSION_RC = "alpha1"
55
-
PLUGIN_LICENSE_YEAR = 2024
55
+
PLUGIN_LICENSE_YEAR = 2025
56
56
)
57
57
58
58
func main() {
59
59
err := flag.HandleFlags(
60
60
plugin.Name,
61
61
os.Args[0],
62
62
fmt.Sprintf(copyrightMessage, PLUGIN_LICENSE_YEAR),
63
63
PLUGIN_VERSION_RC,
64
64
PLUGIN_VERSION_MAJOR,
65
65
PLUGIN_VERSION_MINOR,