Generally, tags start with a <

git-svn-id: https://svn.yakumo.dev/yakumo.izuru/toyohime/trunk@86 922d331f-388e-da47-97a9-ad700dc0b8b9
This commit is contained in:
jonbetti 2018-06-06 03:31:38 +00:00
parent e0c721dbef
commit a5e5dcc8fc

View File

@ -19,7 +19,7 @@ type Option func(*config)
// Instructs the go tool where to fetch the repo at vcsRoot and the importPath
// that tree should be rooted at.
func WithImport(importPath, vcs, vcsRoot string) Option {
importTag := "meta name=\"go-import\" content=\"" + importPath + " " +
importTag := "<meta name=\"go-import\" content=\"" + importPath + " " +
vcs + " " + vcsRoot + "\">"
return func(cfg *config) {
if cfg.importTag != nil {
@ -39,7 +39,7 @@ func WithImport(importPath, vcs, vcsRoot string) Option {
// More information can be found at https://github.com/golang/gddo/wiki/Source-Code-Links.
//
func WithSource(prefix, home, directory, file string) Option {
sourceTag := "meta name=\"go-source\" content=\"" + prefix + " " +
sourceTag := "<meta name=\"go-source\" content=\"" + prefix + " " +
home + " " + directory + " " + file + "\">"
return func(cfg *config) {
if cfg.sourceTag != nil {