filewriter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Copyright 2026 YLD Limited SPDX-License-Identifier: Apache-2.0 Package filewriter provides a simple file writer abstraction for writing byte content to disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct{}

Writer writes byte content to files on disk.

func New

func New() *Writer

New returns a new Writer instance.

func (*Writer) Do

func (writer *Writer) Do(filePath string, content []byte) error

Do creates or truncates filePath and writes content to it.

Jump to

Keyboard shortcuts

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