Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/PhakornKiong/go-pattern-match
/ types & classes
Types & classes
33 in github.com/PhakornKiong/go-pattern-match
⨍
Functions
117
◇
Types & classes
33
TypeAlias
CurrencyPair
Slice of currency pair
example/fxstrategy/main.go:24
FuncType
Handler
func() T
pattern/matcher.go:15
Struct
Matcher
Matcher is a generic struct that matches a value of type V to a response of type T. It has three fields: value, isMatched and response. value is the i
pattern/matcher.go:22
Struct
MyStruct
pattern/matcher_test.go:45
Struct
Order
example/shippingStrategy/main.go:13
Interface
Patterner
pattern/matcher.go:7
FuncType
Predicate
func(V) bool
pattern/when.go:3
Interface
ShippingStrategy
example/shippingStrategy/main.go:9
Struct
airStrategy
shipping by freighter
example/shippingStrategy/air.go:4
Struct
anyPattern
pattern/any.go:3
Struct
custom
pattern/map_test.go:73
Struct
custom
pattern/struct_test.go:26
Struct
custom
pattern/slice_test.go:47
Struct
defaultStrategy
default strategy, just take flat rate of 25
example/shippingStrategy/default.go:4
Struct
embed
pattern/struct_test.go:22
Struct
fieldPattern
pattern/struct.go:12
Struct
fieldVal
pattern/struct.go:7
Struct
freightStrategy
shipping by freighter
example/shippingStrategy/freight.go:4
Struct
intPattern
pattern/int.go:5
Struct
intersection
pattern/intersection.go:7
Struct
intersectionPattern
pattern/intersection.go:24
Struct
keyVal
pattern/map.go:14
Struct
localStrategy
shopping by local partner
example/shippingStrategy/local.go:4
Struct
mapPattern
pattern/map.go:7
Struct
not
pattern/not.go:5
Struct
notPattern
pattern/not.go:17
Struct
predicate
pattern/matcher_test.go:444
Struct
slicePattern
pattern/slice.go:5
Struct
stringPattern
pattern/string.go:9
Struct
structPattern
pattern/struct.go:17
Struct
union
pattern/union.go:7
Struct
unionPattern
pattern/union.go:24
Struct
whenPattern
pattern/when.go:5