File: file_unix.go

package info (click to toggle)
golang-github-andybalholm-crlf 0.0~git20171020.670099a-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 84 kB
  • sloc: makefile: 2
file content (20 lines) | stat: -rw-r--r-- 394 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// +build !windows

package crlf

import (
	"io"
	"os"
)

// Open opens a text file for reading, with platform-appropriate line ending
// conversion.
func Open(name string) (io.ReadCloser, error) {
	return os.Open(name)
}

// Create opens a text file for writing, with platform-appropriate line ending
// conversion.
func Create(name string) (io.WriteCloser, error) {
	return os.Create(name)
}