aboutsummaryrefslogblamecommitdiff
path: root/template_funcs.go
blob: 08932baeff3163785681dd717e617d8432b2c920 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
            
        
              
                 



                                            
                                  
                           
 
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)
}