MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / String

Method String

processing/gravity_type.go:7–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5type GravityType int
6
7func (gt GravityType) String() string {
8 for k, v := range GravityTypes {
9 if v == gt {
10 return k
11 }
12 }
13 return ""
14}
15
16func (gt GravityType) MarshalJSON() ([]byte, error) {
17 for k, v := range GravityTypes {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected