mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-11-03 10:01:13 +08:00
chore: codacy method comment
This commit is contained in:
@@ -94,6 +94,7 @@ func (w *Workspace) GenerateUID(name string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// GenerateWorkspaceUID creates a uid from a workspace name. The limit is 30 characters
|
||||
func GenerateWorkspaceUID(name string) (string, error) {
|
||||
return uid2.GenerateUID(name, 30)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user