Skip to content

Commit

Permalink
Renamed to libstdgo
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoutanov committed Apr 18, 2020
1 parent 342353b commit a8b24e8
Show file tree
Hide file tree
Showing 36 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# stdlibgo
# libstdgo
Standard µ-libraries for Go
2 changes: 1 addition & 1 deletion arity/arity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

"github.com/obsidiandynamics/libstdgo/check"
"github.com/stretchr/testify/assert"
"github.com/obsidiandynamics/stdlibgo/check"
)

func TestRepack(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion check/skipper.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"strings"

"github.com/obsidiandynamics/stdlibgo/commander"
"github.com/obsidiandynamics/libstdgo/commander"
)

// TestSkipper is the API contract for testing.T.Skip().
Expand Down
2 changes: 1 addition & 1 deletion concurrent/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync/atomic"
"time"

"github.com/obsidiandynamics/stdlibgo/arity"
"github.com/obsidiandynamics/libstdgo/arity"
)

// AtomicCounter encapsulates an int64 value that may updated atomically.
Expand Down
2 changes: 1 addition & 1 deletion concurrent/reference.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync/atomic"
"time"

"github.com/obsidiandynamics/stdlibgo/arity"
"github.com/obsidiandynamics/libstdgo/arity"
)

// AtomicReference encapsulates a pointer that may updated atomically. Unlike its sync/atomic.Value counterpart,
Expand Down
2 changes: 1 addition & 1 deletion concurrent/reference_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/obsidiandynamics/libstdgo/check"
"github.com/stretchr/testify/assert"
"github.com/obsidiandynamics/stdlibgo/check"
)

func TestNewAtomicReference_withInitial(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion concurrent/scoreboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"time"

"github.com/obsidiandynamics/stdlibgo/arity"
"github.com/obsidiandynamics/libstdgo/arity"
)

type shard struct {
Expand Down
2 changes: 1 addition & 1 deletion concurrent/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math"
"time"

"github.com/obsidiandynamics/stdlibgo/arity"
"github.com/obsidiandynamics/libstdgo/arity"
)

// Indefinitely is a constant that represents the longest allowable duration (approx. 290 years).
Expand Down
2 changes: 1 addition & 1 deletion diags/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package diags
import (
"time"

"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/scribe"
)

// Watcher contains a timer that fires if an operation fails to complete within a deadline.
Expand Down
6 changes: 3 additions & 3 deletions diags/watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"testing"
"time"

"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/concurrent"
"github.com/obsidiandynamics/libstdgo/scribe"
"github.com/stretchr/testify/assert"
"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/concurrent"
"github.com/obsidiandynamics/stdlibgo/scribe"
)

func TestWatch_ended(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion fault/fault.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package fault
import (
"math/rand"

"github.com/obsidiandynamics/stdlibgo/concurrent"
"github.com/obsidiandynamics/libstdgo/concurrent"
)

// Spec outlines the conditions for a fault, comprising a contingency, as well as an error that is reported when said contingency arises.
Expand Down
2 changes: 1 addition & 1 deletion fault/fault_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"
"time"

"github.com/obsidiandynamics/libstdgo/check"
"github.com/stretchr/testify/assert"
"github.com/obsidiandynamics/stdlibgo/check"
)

func TestNone(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/obsidiandynamics/stdlibgo
module github.com/obsidiandynamics/libstdgo

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion scribe/bindings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

"github.com/obsidiandynamics/libstdgo/check"
"github.com/stretchr/testify/assert"
"github.com/obsidiandynamics/stdlibgo/check"
)

func TestBindFmtPrintf(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion scribe/glog/glog_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package glog

import (
"github.com/golang/glog"
"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/scribe"
)

// Bind creates a binding for Glog.
Expand Down
2 changes: 1 addition & 1 deletion scribe/glog/glog_binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package glog
import (
"testing"

"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/scribe"
)

// Just for coverage and to make sure that nothing panics, as Glog does not allow us to assert
Expand Down
4 changes: 2 additions & 2 deletions scribe/glog/glog_doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package glog
import (
"testing"

"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/scribe"
)

func Example() {
Expand Down
4 changes: 2 additions & 2 deletions scribe/log15/log15_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/go-stack/stack"
"github.com/inconshreveable/log15"
"github.com/obsidiandynamics/stdlibgo/arity"
"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/arity"
"github.com/obsidiandynamics/libstdgo/scribe"
)

// Binding captures the state of the binding, including the underlying logger instance. The
Expand Down
4 changes: 2 additions & 2 deletions scribe/log15/log15_binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"

"github.com/inconshreveable/log15"
"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/scribe"
"github.com/stretchr/testify/assert"
"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/scribe"
)

func TestLogLevels(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions scribe/log15/log15_doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"

"github.com/inconshreveable/log15"
"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/scribe"
)

func Example() {
Expand Down
4 changes: 2 additions & 2 deletions scribe/logrus/logrus_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package logrus
import (
"context"

"github.com/obsidiandynamics/stdlibgo/arity"
"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/arity"
"github.com/obsidiandynamics/libstdgo/scribe"
"github.com/sirupsen/logrus"
lr "github.com/sirupsen/logrus"
)
Expand Down
4 changes: 2 additions & 2 deletions scribe/logrus/logrus_binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"context"
"testing"

"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/scribe"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions scribe/logrus/logrus_doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package logrus
import (
"testing"

"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/scribe"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion scribe/mockscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"time"

"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/libstdgo/check"
)

// MockScribe provides a facility for mocking a Scribe, capturing log calls for subsequent inspection, filtering and assertions.
Expand Down
2 changes: 1 addition & 1 deletion scribe/mockscribe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/obsidiandynamics/libstdgo/check"
"github.com/stretchr/testify/assert"
"github.com/obsidiandynamics/stdlibgo/check"
)

func TestBasicLogging(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions scribe/overlog/overlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"sync"
"time"

"github.com/obsidiandynamics/stdlibgo/arity"
"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/arity"
"github.com/obsidiandynamics/libstdgo/scribe"
)

// Overlog is a synchronized logger backed by an io.Writer, suitable for use in concurrent applications
Expand Down
2 changes: 1 addition & 1 deletion scribe/overlog/overlog_binding.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package overlog

import "github.com/obsidiandynamics/stdlibgo/scribe"
import "github.com/obsidiandynamics/libstdgo/scribe"

// Bind creates a direct binding for the given logger.
func Bind(logger Overlog) scribe.LoggerFactories {
Expand Down
4 changes: 2 additions & 2 deletions scribe/overlog/overlog_binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"testing"

"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/scribe"
"github.com/stretchr/testify/assert"
"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/scribe"
)

func TestLogLevels(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions scribe/overlog/overlog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"testing"
"time"

"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/scribe"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/scribe"
)

func TestPrintfAndRaw(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion scribe/scribe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

"github.com/obsidiandynamics/libstdgo/check"
"github.com/stretchr/testify/assert"
"github.com/obsidiandynamics/stdlibgo/check"
)

type logCapture struct {
Expand Down
2 changes: 1 addition & 1 deletion scribe/seelog/seelog_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/cihub/seelog"
"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/scribe"
)

// Binding captures the state of the binding, including the underlying logger instance. The
Expand Down
4 changes: 2 additions & 2 deletions scribe/seelog/seelog_binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"testing"

"github.com/cihub/seelog"
"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/scribe"
"github.com/stretchr/testify/assert"
"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/scribe"
)

func createBindingForWriter(w io.Writer) Binding {
Expand Down
4 changes: 2 additions & 2 deletions scribe/seelog/seelog_doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"

"github.com/cihub/seelog"
"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/scribe"
)

func Example() {
Expand Down
2 changes: 1 addition & 1 deletion scribe/zap/zap_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package zap
import (
"fmt"

"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/scribe"
"go.uber.org/zap"
)

Expand Down
4 changes: 2 additions & 2 deletions scribe/zap/zap_binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"testing"

"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/scribe"
"github.com/stretchr/testify/assert"
"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/scribe"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
Expand Down
4 changes: 2 additions & 2 deletions scribe/zap/zap_doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package zap
import (
"testing"

"github.com/obsidiandynamics/stdlibgo/check"
"github.com/obsidiandynamics/stdlibgo/scribe"
"github.com/obsidiandynamics/libstdgo/check"
"github.com/obsidiandynamics/libstdgo/scribe"
"go.uber.org/zap"
)

Expand Down

0 comments on commit a8b24e8

Please sign in to comment.