我想在 golang 的 martini 中返回一個(gè)字符串作為模板:m.Get("/", func(r render.Render) string { template := "Hello world! <form name='input' action='../first' method='post' ><input type='texte' name='toto'><input type='submit' value='Submit'></form>" r.HTML(200, "post", template)})但它返回一個(gè)錯(cuò)誤:在函數(shù)結(jié)束時(shí)缺少返回問候和感謝 bussiere
返回字符串作為模板
慕桂英3389331
2021-08-16 18:54:26