Sonstiges
(n int)
| 386 | |
| 387 | // Sonstiges |
| 388 | func randomString(n int) string { |
| 389 | |
| 390 | const alphanum = "AB1CD2EF3GH4IJ5KL6MN7OP8QR9ST0UVWXYZ" |
| 391 | |
| 392 | var bytes = make([]byte, n) |
| 393 | |
| 394 | rand.Read(bytes) |
| 395 | |
| 396 | for i, b := range bytes { |
| 397 | bytes[i] = alphanum[b%byte(len(alphanum))] |
| 398 | } |
| 399 | |
| 400 | return string(bytes) |
| 401 | } |
| 402 | |
| 403 | func parseTemplate(content string, tmpMap map[string]interface{}) (result string) { |
| 404 |
no outgoing calls
no test coverage detected