common

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package common contains functions shared by scripts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(path string) ([]string, error)

ReadFile reads a file at OS path, splits its content into lines and returns the resulting slice.

func WriteFile

func WriteFile(path string, lines []string, sort bool) (string, error)

WriteFile writes lines to the specified path, optionally sorting them. Returns SHA256 checksum of the data written and errors related to file handling.

Types

This section is empty.

Jump to

Keyboard shortcuts

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