aboutsummaryrefslogblamecommitdiff
path: root/template_funcs.go
blob: 3c5ca0bac49a15dfaf3015dfa8c353b95ac3c97f (plain) (tree)
1
2
3
4
5
6
7
8






                                            
package main

import "strings"

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