mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
19 lines
234 B
Go
19 lines
234 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
func maybeSuffix(counter int) string {
|
|
if counter == 0 {
|
|
return ""
|
|
}
|
|
|
|
return fmt.Sprintf("%d", counter+1)
|
|
}
|
|
|
|
func titleCase(s string) string {
|
|
return strings.ToUpper(s[0:1]) + s[1:]
|
|
}
|