aboutsummaryrefslogblamecommitdiff
path: root/http_template_funcs.go
blob: 119a800d95f7e3ab59ce5e575001c6881caebab9 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                       

            
        
              

                 




                                            
 
                                 
                           
 
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-FileContributor: Runxi Yu <https://runxiyu.org>

package main

import (
	"path"
	"strings"
)

func first_line(s string) string {
	before, _, _ := strings.Cut(s, "\n")
	return before
}

func base_name(s string) string {
	return path.Base(s)
}