Is there a normal fast string encoding algorithm to get an eight-digit ID (used in the frontend, to bundle certain elements). Can you share?
Example : tab55925907 , where tab is the prefix and the other part is the ID obtained from a string of any length and from any characters (x1y2z3). It is possible to fill in with zeros if the string is less than 8 characters.
// p - prefix; s - string; func GenerateTargetId(s string, p string) string { result := p + s[:8] return result }