From b8e4529773c3d12b172729567574ea6201231682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Comb=C3=BCchen?= Date: Wed, 8 May 2024 12:26:23 +0200 Subject: [PATCH] feat(1.6): add SpecVersion for v1.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #153. Signed-off-by: Maximilian Combüchen --- cyclonedx.go | 1 + cyclonedx_string.go | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cyclonedx.go b/cyclonedx.go index e51e687..9afabe0 100644 --- a/cyclonedx.go +++ b/cyclonedx.go @@ -821,6 +821,7 @@ const ( SpecVersion1_3 // 1.3 SpecVersion1_4 // 1.4 SpecVersion1_5 // 1.5 + SpecVersion1_6 // 1.6 ) type SWID struct { diff --git a/cyclonedx_string.go b/cyclonedx_string.go index ef70083..1e279d1 100644 --- a/cyclonedx_string.go +++ b/cyclonedx_string.go @@ -34,11 +34,12 @@ func _() { _ = x[SpecVersion1_3-4] _ = x[SpecVersion1_4-5] _ = x[SpecVersion1_5-6] + _ = x[SpecVersion1_6-7] } -const _SpecVersion_name = "1.01.11.21.31.41.5" +const _SpecVersion_name = "1.01.11.21.31.41.51.6" -var _SpecVersion_index = [...]uint8{0, 3, 6, 9, 12, 15, 18} +var _SpecVersion_index = [...]uint8{0, 3, 6, 9, 12, 15, 18, 21} func (i SpecVersion) String() string { i -= 1