MCPcopy Create free account
hub / github.com/egonelbre/exp / SpecFor

Function SpecFor

mm/spec.go:41–52  ·  view source on GitHub ↗
(v Allocator)

Source from the content-addressed store, hash-verified

39}
40
41func SpecFor(v Allocator) *Spec {
42 _, dealloc := v.(Deallocator)
43 _, owns := v.(Owner)
44 _, empty := v.(Emptyer)
45 return &Spec{
46 Type: fmt.Sprintf("%+T", v),
47 Alignment: v.Alignment(),
48 Dealloc: dealloc,
49 Owns: owns,
50 Empty: empty,
51 }
52}
53
54var funcs = template.FuncMap{
55 "min": func(a, b int) int {

Callers 1

mainFunction · 0.92

Calls 1

AlignmentMethod · 0.65

Tested by

no test coverage detected