Skip to content

Commit

Permalink
The dependency on the external g module has been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
goloop committed Jun 29, 2023
1 parent 2cda0d0 commit 28bb39a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 6 additions & 4 deletions fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package trit

import (
"reflect"

"github.com/goloop/g"
)

// Logicable is a special data type from which to determine the state of trit.
// Logicable is a special data type from which to determine the state of Trit
// in the context of three-valued logic.
type Logicable interface {
bool | g.Numerable | Trit
bool | Trit |
int | int8 | int16 | int32 | int64 |
uint | uint8 | uint16 | uint32 | uint64 |
float32 | float64
}

// The logicToTrit function converts any logic type to Trit.
Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module github.com/goloop/trit

go 1.20

require github.com/goloop/g v1.7.1
2 changes: 0 additions & 2 deletions go.sum

This file was deleted.

0 comments on commit 28bb39a

Please sign in to comment.