struct-markdown should keep the same slash direction regardless of Windows or Linux (#8738)

pull/8741/head
jhawk28 6 years ago committed by GitHub
parent 391cea13ed
commit ff1af40c66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -60,19 +60,20 @@ func main() {
}
fields := structDecl.Fields.List
sourcePath := filepath.ToSlash(paths[1])
header := Struct{
SourcePath: paths[1],
SourcePath: sourcePath,
Name: typeSpec.Name.Name,
Filename: "_" + typeSpec.Name.Name + ".html.md",
Header: typeDecl.Doc.Text(),
}
required := Struct{
SourcePath: paths[1],
SourcePath: sourcePath,
Name: typeSpec.Name.Name,
Filename: "_" + typeSpec.Name.Name + "-required.html.md",
}
notRequired := Struct{
SourcePath: paths[1],
SourcePath: sourcePath,
Name: typeSpec.Name.Name,
Filename: "_" + typeSpec.Name.Name + "-not-required.html.md",
}

Loading…
Cancel
Save