package util

import "git.dotya.ml/wanderer/math-optim/util"

Index

Functions

func CreateFolder

func CreateFolder(path string) error

CreateFolder creates a folder at the specified path, if it doesn't already exist.

func CreatePath

func CreatePath(path string) error

CreatePath creates all folders in the provided path, if they don't already exist.

func SanitiseFName

func SanitiseFName(s string) string

SanitiseFName clears spaces from the string that is supposed to be a file name so that the result is safer to use with e.g. latex.

Source Files

util.go

Version
v0.0.0-20230224152531-7a5de808e98c (latest)
Published
Feb 24, 2023
Platform
linux/amd64
Imports
5 packages
Last checked
2 months ago

Tools for package owners.