diff --git a/go/iota.go b/go/iota.go new file mode 100644 index 0000000..e0c535d --- /dev/null +++ b/go/iota.go @@ -0,0 +1,23 @@ +package main + +// from https://humungus.tedunangst.com/r/honk/v/tip/f/hfcs.go + +type filtType uint + +const ( + filtNone filtType = iota + filtAny + filtReject + filtSkipMedia + filtHide + filtCollapse + filtRewrite +) + +var filtNames = []string{"None", "Any", "Reject", "SkipMedia", "Hide", "Collapse", "Rewrite"} + +func (ft filtType) String() string { + return filtNames[ft] +} + +type afiltermap map[filtType][]*Filter