MCPcopy Create free account
hub / github.com/Boostport/migration / String

Method String

migration.go:18–27  ·  view source on GitHub ↗

String returns a string representation of the direction

()

Source from the content-addressed store, hash-verified

16
17// String returns a string representation of the direction
18func (d Direction) String() string {
19 switch d {
20 case Up:
21 return "up"
22 case Down:
23 return "down"
24 default:
25 return "directionless"
26 }
27}
28
29// Constants for direction
30const (

Callers 3

TestDirectionStringFunction · 0.95
MigrateFunction · 0.80
ParseFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestDirectionStringFunction · 0.76