Skip to content

Commit

Permalink
Move log pkg to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnStarich committed Aug 2, 2021
1 parent 071cbf8 commit f4b6f59
Show file tree
Hide file tree
Showing 28 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion cmd/editor/dom/element.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/hack-pad/hackpad/internal/common"
"github.com/hack-pad/hackpad/internal/interop"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
)

type Element struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/editor/editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/hack-pad/hackpad/cmd/editor/dom"
"github.com/hack-pad/hackpad/cmd/editor/ide"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
)

// editorJSFunc is a JS function that opens on a JS element and returns a JS object with the following spec:
Expand Down
2 changes: 1 addition & 1 deletion cmd/editor/ide/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strings"
"time"

"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpad/internal/promise"
"github.com/hack-pad/hackpad/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/editor/ide/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/avct/uasurfer"
"github.com/hack-pad/hackpad/cmd/editor/css"
"github.com/hack-pad/hackpad/cmd/editor/dom"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
"go.uber.org/atomic"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/editor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/hack-pad/hackpad/cmd/editor/taskconsole"
"github.com/hack-pad/hackpad/cmd/editor/terminal"
"github.com/hack-pad/hackpad/internal/interop"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/editor/plaineditor/editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/hack-pad/hackpad/cmd/editor/dom"
"github.com/hack-pad/hackpad/cmd/editor/ide"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
)

type textAreaBuilder struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/editor/plaineditor/typer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"syscall/js"
"unicode"

"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/editor/terminal/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/hack-pad/hackpad/cmd/editor/dom"
"github.com/hack-pad/hackpad/cmd/editor/ide"
"github.com/hack-pad/hackpad/internal/common"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpadfs/indexeddb/idbblob"
"github.com/hack-pad/hackpadfs/keyvalue/blob"
)
Expand Down
2 changes: 1 addition & 1 deletion install.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"syscall/js"

"github.com/hack-pad/hackpad/internal/interop"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpad/internal/process"
"github.com/hack-pad/hackpad/internal/promise"
"github.com/hack-pad/hackpad/log"
)

func installFunc(this js.Value, args []js.Value) interface{} {
Expand Down
2 changes: 1 addition & 1 deletion internal/fs/file_descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"

"github.com/hack-pad/hackpad/internal/common"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpadfs"
"go.uber.org/atomic"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"path"

"github.com/hack-pad/hackpad/internal/common"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpad/internal/tarfs"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpadfs"
"github.com/hack-pad/hackpadfs/cache"
"github.com/hack-pad/hackpadfs/mem"
Expand Down
2 changes: 1 addition & 1 deletion internal/fs/stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"time"

"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpadfs"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/fs/wasm_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"time"

"github.com/hack-pad/hackpad/internal/fsutil"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpad/internal/promise"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpadfs"
"github.com/hack-pad/hackpadfs/indexeddb/idbblob"
"github.com/hack-pad/hackpadfs/keyvalue/blob"
Expand Down
2 changes: 1 addition & 1 deletion internal/fs/working_directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fs
import (
"time"

"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpadfs"
"go.uber.org/atomic"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/interop/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os/exec"

"github.com/hack-pad/hackpad/internal/common"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpadfs"
"github.com/pkg/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/interop/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"syscall/js"

"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/interop/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"syscall/js"
"time"

"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
)

func ProfileJS(this js.Value, args []js.Value) interface{} {
Expand Down
2 changes: 1 addition & 1 deletion internal/js/fs/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"github.com/hack-pad/hackpad/internal/common"
"github.com/hack-pad/hackpad/internal/fs"
"github.com/hack-pad/hackpad/internal/interop"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpad/internal/process"
"github.com/hack-pad/hackpad/internal/promise"
"github.com/hack-pad/hackpad/log"
"github.com/johnstarich/go/datasize"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/process/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"syscall"

"github.com/hack-pad/hackpad/internal/fs"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
)

const initialDirectory = "/home/me"
Expand Down
2 changes: 1 addition & 1 deletion internal/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/hack-pad/hackpad/internal/common"
"github.com/hack-pad/hackpad/internal/fs"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpadfs/keyvalue/blob"
"github.com/pkg/errors"
"go.uber.org/atomic"
Expand Down
2 changes: 1 addition & 1 deletion internal/process/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"syscall/js"

"github.com/hack-pad/hackpad/internal/interop"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpad/internal/promise"
"github.com/hack-pad/hackpad/log"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/promise/js.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"syscall/js"

"github.com/hack-pad/hackpad/internal/interop"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpad/internal/log"
)

var jsPromise = js.Global().Get("Promise")
Expand Down
2 changes: 1 addition & 1 deletion internal/tarfs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"github.com/hack-pad/hackpad/internal/bufferpool"
"github.com/hack-pad/hackpad/internal/common"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpad/internal/pubsub"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpadfs"
"github.com/pkg/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/terminal/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/hack-pad/hackpad/internal/fs"
"github.com/hack-pad/hackpad/internal/interop"
"github.com/hack-pad/hackpad/internal/log"
"github.com/hack-pad/hackpad/internal/process"
"github.com/hack-pad/hackpad/log"
"github.com/hack-pad/hackpadfs/indexeddb/idbblob"
"github.com/pkg/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/hack-pad/hackpad/internal/interop"
"github.com/hack-pad/hackpad/internal/js/fs"
"github.com/hack-pad/hackpad/internal/js/process"
"github.com/hack-pad/hackpad/internal/log"
libProcess "github.com/hack-pad/hackpad/internal/process"
"github.com/hack-pad/hackpad/internal/terminal"
"github.com/hack-pad/hackpad/log"
)

func main() {
Expand Down

0 comments on commit f4b6f59

Please sign in to comment.