UniqueName returns a random name with a monotonically increasing suffix, guaranteeing uniqueness within the process. The name is truncated to 32 characters if necessary, preserving the numeric suffix.
()
| 49 | // guaranteeing uniqueness within the process. The name is truncated to 32 |
| 50 | // characters if necessary, preserving the numeric suffix. |
| 51 | func UniqueName() string { |
| 52 | return UniqueNameWith("_") |
| 53 | } |
| 54 | |
| 55 | // UniqueNameWith returns a unique name with a custom delimiter. |
| 56 | // See UniqueName for details on uniqueness guarantees. |