blob: 00131b52a999616aae5f4812ee573527f8f42757 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package main
import (
"fmt"
git "go.wit.com/lib/libgit2"
"go.wit.com/log"
)
func testMessage() {
var input git.Trailer
input.Key = "Co-authored-by"
input.Value = "Alice <[email protected]>"
/*
git2go.Trailer
git2go.Trailer{Key: "Signed-off-by", Value: "Bob <[email protected]>"}}
*/
fmt.Printf("%s", input)
actual, err := git.MessageTrailers(input.Key)
log.Info("actual", actual, err)
}
|