Skip to content

Commit

Permalink
feat: Expose object links (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ral authored May 26, 2024
1 parent dbd4c34 commit adf0ea6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions object.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ func (obj *Object) Relationships() []string {
return result
}

// Links returns the object's links.
func (obj *Object) Links() *Links {
return obj.data.Links
}

// MarshalJSON marshals a VirusTotal API object.
func (obj *Object) MarshalJSON() ([]byte, error) {
return json.Marshal(obj.data)
Expand Down

0 comments on commit adf0ea6

Please sign in to comment.