working sections version
This commit is contained in:
parent
16ea95bf09
commit
9424084a36
28 changed files with 367 additions and 251 deletions
|
|
@ -48,7 +48,11 @@ func StoreTitle(section, title string) string {
|
|||
}
|
||||
|
||||
func SplitStoreTitle(st string) (section, title string) {
|
||||
if a := strings.Split(st, "/"); len(a) == 2 {
|
||||
a := strings.Split(st, "/")
|
||||
switch len(a) {
|
||||
case 1:
|
||||
return a[0], ""
|
||||
case 2:
|
||||
return a[0], a[1]
|
||||
}
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue