This commit is contained in:
ston1th 2020-06-01 15:40:52 +02:00
commit 12816a532c
3 changed files with 6 additions and 3 deletions

View file

@ -26,6 +26,9 @@ func UnmarshalUserData(b []byte) (u *UserData, err error) {
return
}
func MarshalUserData(u *UserData) ([]byte, error) {
if u == nil {
return
}
return yaml.Marshal(u)
}