What do you want to save?
Add Code snippet
New code examples
-
Go 2021-09-26 19:15:03
commonly used go packages
package main import ( "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/sqlite" ) type Product struct { gorm.Model Code string ... Add solution -
Go 2021-09-26 14:08:04
adding links in gopdf
package main import ( "log" "github.com/signintech/gopdf" ) func main() { pdf := gopdf.GoPdf{} pdf.Start(gopdf.Config{ PageSize: *gopdf.PageSizeA4 }) //595.28, 841.89 = A4 pdf.AddPage() err := pdf.AddTTFFont("times",... Add solution -
Go 2021-09-06 21:17:02
go validator example
// NOTED: if value or key is exist in mapping = error // NOTED: if value or key is not exist in mapping = not error // more validation struct reference follow this link -> https://github.com/go-playground/validator // example usage package main im... Add solution
Best helpers
Ranking is empty