Skip to content

Commit 3d97670

Browse files
docs: update README
1 parent 277b47a commit 3d97670

1 file changed

Lines changed: 12 additions & 25 deletions

File tree

README.md

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,19 @@ fmt.Printf("%#v", commit)
2525

2626
/*
2727
commitMsg = &parser.Commit{
28-
Header: parser.Header{
29-
Type: "feat",
30-
Scope: "scope",
31-
Description: "description",
32-
FullHeader: "feat(scope): description",
33-
},
34-
Body: "this is first line in body\n\nthis is second line in body",
35-
Footer: parser.Footer{
36-
Notes: []parser.FooterNote{
37-
parser.FooterNote{
38-
Token: "Ref",
39-
Value: "123",
40-
},
41-
parser.FooterNote{
42-
Token: "Date",
43-
Value: "01-01-2021",
44-
},
45-
parser.FooterNote{
46-
Token: "By",
47-
Value: "John Doe",
48-
},
28+
message: "feat(scope): description\n\nthis is first line in body\n\nthis is second line in body\n\nRef #123\nDate: 01-01-2021\nBy: John Doe",
29+
header: "feat(scope): description",
30+
body: "this is first line in body\n\nthis is second line in body",
31+
footer: "Ref #123\nDate: 01-01-2021\nBy: John Doe",
32+
commitType: "feat",
33+
scope: "scope",
34+
description: "description",
35+
notes: {
36+
{token:"Ref", value:"123"},
37+
{token:"Date", value:"01-01-2021"},
38+
{token:"By", value:"John Doe"},
4939
},
50-
FullFooter: "Ref #123\nDate: 01-01-2021\nBy: John Doe",
51-
},
52-
BreakingChange: false,
53-
FullCommit: "feat(scope): description\n\nthis is first line in body\n\nthis is second line in body\n\nRef #123\nDate: 01-01-2021\nBy: John Doe",
40+
isBreakingChange: false,
5441
}
5542
*/
5643
```

0 commit comments

Comments
 (0)