gitea: Index | Files

package utils

import ""


Package Files


func IsExternalURL Uses

func IsExternalURL(rawURL string) bool

IsExternalURL checks if rawURL points to an external URL like

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

func SanitizeFlashErrorString Uses

func SanitizeFlashErrorString(x string) string

SanitizeFlashErrorString will sanitize a flash error string

Package utils imports 4 packages (graph) and is imported by 35 packages. Updated 2020-12-11. Refresh now. Tools for package owners.