10 lines
260 B
Go
10 lines
260 B
Go
|
package jsonapi
|
||
|
|
||
|
// The EntityNamer interface can be optionally implemented to directly return the
|
||
|
// name of resource used for the "type" field.
|
||
|
//
|
||
|
// Note: By default the name is guessed from the struct name.
|
||
|
type EntityNamer interface {
|
||
|
GetName() string
|
||
|
}
|