Skip to content

Commit d986e16

Browse files
committed
Do not export functions unnecessarily
This project is intended only as a standalone application; not as a reusable packge. It only has a single package. For this reason, there is no reason to export functions.
1 parent cf31ae3 commit d986e16

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: main.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ func main() {
127127
var sketchData *bytes.Buffer
128128

129129
if *binMode {
130-
sketchData = StreamToBytes(f)
130+
sketchData = streamToBytes(f)
131131
} else {
132-
str := StreamToString(f)
132+
str := streamToString(f)
133133
re := regexp.MustCompile(`\r?\n`)
134134
str = re.ReplaceAllString(str, "")
135135
sketchData = bytes.NewBufferString(str)
@@ -228,14 +228,14 @@ func main() {
228228
}
229229
}
230230

231-
func StreamToBytes(stream io.Reader) *bytes.Buffer {
231+
func streamToBytes(stream io.Reader) *bytes.Buffer {
232232
buf := new(bytes.Buffer)
233233
buf.ReadFrom(stream)
234234
return buf
235235
}
236236

237-
func StreamToString(stream io.Reader) string {
238-
return StreamToBytes(stream).String()
237+
func streamToString(stream io.Reader) string {
238+
return streamToBytes(stream).String()
239239
}
240240

241241
func getMyIP(otherip net.IP) net.IP {

0 commit comments

Comments
 (0)