service

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package service contains utility functions used across services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDir

func DeleteDir(dir string) error

DeleteDir deletes a dir

func DirExists

func DirExists(path string) bool

DirExists reports whether the dir exists

func EnsureDir

func EnsureDir(dirName string, mode int) error

EnsureDir ensures that directory exists

func FileExists

func FileExists(path string) bool

FileExists reports whether the named file exists

func WriteJSON

func WriteJSON(w http.ResponseWriter, statusCode int, data interface{}) error

WriteJSON writes a JSON response with the given status code and data

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL