Skip to content

add a twin method that uses fs.FS #4

@github-actions

Description

@github-actions

add a twin method that uses fs.FS

// # TODO: add a twin method that uses fs.FS

// retry the method call later.
func (lines *Buffer) WriteFile(filepath string) error {
	// # TODO: add a twin method that uses fs.FS
	f, err := os.OpenFile(filepath, os.O_CREATE|os.O_EXCL|os.O_WRONLY, fs.FileMode(0644))
	if err != nil {
		return err

05f08cb935e247935eafdd7619bbda80798e9665

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions