View definition

func RegisterMakeDefFormatter

Defined in github.com/sourcegraph/srclib/graph/formatter.go

Description

RegisterMakeDefFormatter makes a DefFormatter constructor function (MakeDefFormatter) available for defs with the specified unitType. If Register is called twice with the same unitType or if sf is nil, it panics