gitea: code.gitea.io/gitea/routers/utils Index | Files

package utils

import "code.gitea.io/gitea/routers/utils"

Index

Package Files

utils.go

func IsValidSlackChannel Uses

func IsValidSlackChannel(channelName string) bool

IsValidSlackChannel validates a channel name conforms to what slack expects. It makes sure a channel name cannot be empty and invalid ( only an # )

func RemoveUsernameParameterSuffix Uses

func RemoveUsernameParameterSuffix(name string) string

RemoveUsernameParameterSuffix returns the username parameter without the (fullname) suffix - leaving just the username

Package utils imports 1 packages (graph) and is imported by 8 packages. Updated 2019-03-26. Refresh now. Tools for package owners.