util

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelString

func ChannelString(channel chat1.ChatChannel) string

ChannelString returns a string representation of a chat1.ChatChannel suitable for inclusion in chat and log messages

func HasMinRole

func HasMinRole(kb *keybase.Keybase, role string, user string, conv chat1.ConvIDStr) bool

HasMinRole returns true if the given user has the given role or higher in the converation

func StringInSlice added in v1.1.0

func StringInSlice(needle string, haystack []string) bool

StringInSlice returns true if the given string is present in the slice of strings

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL