Browse Source

add iota example to go

master
Jeffrey Paul 6 months ago
parent
commit
8a791640a5
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      go/iota.go

+ 23
- 0
go/iota.go View File

@@ -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

Loading…
Cancel
Save