mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-31 06:34:00 +00:00
go1.16 (#14783)
This commit is contained in:
parent
030646eea4
commit
47f6a4ec3f
947 changed files with 26119 additions and 7062 deletions
5
vendor/gopkg.in/yaml.v3/encode.go
generated
vendored
5
vendor/gopkg.in/yaml.v3/encode.go
generated
vendored
|
@ -120,6 +120,11 @@ func (e *encoder) marshal(tag string, in reflect.Value) {
|
|||
e.nodev(in)
|
||||
return
|
||||
case Node:
|
||||
if !in.CanAddr() {
|
||||
var n = reflect.New(in.Type()).Elem()
|
||||
n.Set(in)
|
||||
in = n
|
||||
}
|
||||
e.nodev(in.Addr())
|
||||
return
|
||||
case time.Time:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue