MCPcopy Create free account
hub / github.com/TruthHun/BookStack / InMap

Function InMap

utils/util.go:751–756  ·  view source on GitHub ↗

判断数据是否在map中

(maps map[int]bool, key int)

Source from the content-addressed store, hash-verified

749
750// 判断数据是否在map中
751func InMap(maps map[int]bool, key int) (ret bool) {
752 if _, ok := maps[key]; ok {
753 return true
754 }
755 return
756}
757
758// 从HTML中获取text
759func GetTextFromHtml(htmlStr string) (txt string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected