TcM1911 / stix2

A pure Go library for working with Structured Threat Information Expression (STIX™) version 2.x data
BSD 2-Clause "Simplified" License
22 stars 6 forks source link

Add a Getter to the collection #32

Closed TcM1911 closed 4 years ago

TcM1911 commented 4 years ago

This can be used to get a STIX object from the collection based on its ID. If the item does not exist in the collection, nil is returned.

codecov[bot] commented 4 years ago

Codecov Report

Merging #32 into master will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
+ Coverage   95.70%   95.71%   +0.01%     
==========================================
  Files          41       41              
  Lines        3725     3736      +11     
==========================================
+ Hits         3565     3576      +11     
  Misses         80       80              
  Partials       80       80              
Impacted Files Coverage Δ
stix.go 84.70% <100.00%> (+0.19%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 828148a...093e0f3. Read the comment docs.