我想在 golang 的 martini 中返回一個字符串作為模板: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)})但它返回一個錯誤:在函數(shù)結束時缺少返回問候和感謝 bussiere
返回字符串作為模板
慕桂英3389331
2021-08-16 18:54:26