Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #49 from adamreese/fix/deprecated
Browse files Browse the repository at this point in the history
fix(std/io): os.SEEK_SET, os.SEEK_CUR, and os.SEEK_END are deprecated
  • Loading branch information
adamreese committed Feb 1, 2019
2 parents a041732 + 530489e commit 5105380
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions std/io/stream.go
Expand Up @@ -2,16 +2,17 @@ package io

import (
"fmt"
"io"
"os"
"strings"

"github.com/Azure/golua/lua"
)

var whence = map[string]int{
"set": os.SEEK_SET,
"cur": os.SEEK_CUR,
"end": os.SEEK_END,
"set": io.SeekStart,
"cur": io.SeekCurrent,
"end": io.SeekEnd,
}

type stream struct {
Expand Down

0 comments on commit 5105380

Please sign in to comment.