Documentation ¶
Index ¶
- Constants
- func Fetch(url string) (*http.Response, error)
- func GeneratePathForCss(path *string) string
- func GeneratePathForHTML(path *string) string
- func InsertSlice[T any](original []T, inserted []T, n int) []T
- func LogBoolToString(b bool) string
- func LogErrorResponse(w http.ResponseWriter, err error)
- func LogResult(w http.ResponseWriter, r *http.Request)
- func ReadFile(path *string) ([]byte, error)
- func StringOrEmpty(s string, err error) string
Constants ¶
View Source
const Config = ".config/local-searchengine/config.toml"
View Source
const Datas = ".local/share/local-searchengine/"
View Source
const StatsFile = Datas + "stats.csv"
Variables ¶
This section is empty.
Functions ¶
func GeneratePathForCss ¶
func GeneratePathForHTML ¶
func InsertSlice ¶
func LogBoolToString ¶
func LogErrorResponse ¶
func LogErrorResponse(w http.ResponseWriter, err error)
func StringOrEmpty ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.