Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Commit 4bb61ae

Browse files
committed
make the link optional
1 parent d249b22 commit 4bb61ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

models/cv.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
type CV struct {
2222
Title string `json:"-"` // Not supported yet
2323
ReferenceNumber string `json:"referenceNumber" description:"The reference number (ID) of this CV on the site it was scraped from. We use this to track duplicated CVs"`
24-
Link string `json:"link" description:"A link to the page on the site where this cv was found"`
24+
Link *string `json:"link" description:"A link to the page on the site where this cv was found"`
2525
CreatedAt *jsonHelpers.RFC3339Nano `json:"createdAt,omitempty"`
2626
LastChanged *jsonHelpers.RFC3339Nano `json:"lastChanged,omitempty"`
2727
Educations []Education `json:"educations,omitempty"`
@@ -330,11 +330,12 @@ func (cv *CV) FullName() string {
330330

331331
// ExampleCV is a cv that can be used for demonstrative purposes
332332
func ExampleCV() *CV {
333+
link := "https://website-this-cv-came-from.ninja/person/4455"
333334
now := jsonHelpers.RFC3339Nano(time.Now()).ToPtr()
334335
return &CV{
335336
Title: "Pilot with experience in farming simulator 2020",
336337
ReferenceNumber: "4455-PIETER",
337-
Link: "https://website-this-cv-came-from.ninja/person/4455",
338+
Link: &link,
338339
CreatedAt: now,
339340
LastChanged: now,
340341

0 commit comments

Comments
 (0)