MCPcopy Create free account
hub / github.com/efectn/go-orm-benchmarks / NewModelAlt

Function NewModelAlt

bench/models.go:45–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func NewModelAlt() Model {
46 m := Model{}
47 m.Name = "Orm Benchmark"
48 m.Title = "Just a Benchmark for fun"
49 m.Fax = "99909990"
50 m.Web = "http://blog.milkpod29.me"
51 m.Age = 100
52 m.Right = true
53 m.Counter = 1000
54
55 return m
56}
57
58// Model for Godb, Dbr
59type Model2 struct {

Callers 5

InsertMethod · 0.85
InsertMultiMethod · 0.85
UpdateMethod · 0.85
ReadMethod · 0.85
ReadSliceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected