mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-15 05:16:34 +08:00
20 lines
378 B
Go
20 lines
378 B
Go
|
|
package firewallconfigs
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
"strings"
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestRuleOperator_Markdown(t *testing.T) {
|
||
|
|
result := []string{}
|
||
|
|
for _, def := range AllRuleOperators {
|
||
|
|
row := "## " + def.Name + "\n"
|
||
|
|
row += "符号:`" + def.Code + "`\n"
|
||
|
|
row += "描述:" + def.Description + "\n"
|
||
|
|
result = append(result, row)
|
||
|
|
}
|
||
|
|
|
||
|
|
fmt.Print(strings.Join(result, "\n") + "\n")
|
||
|
|
}
|