Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdata committed Dec 13, 2024
1 parent 81af3c9 commit ee6be70
Show file tree
Hide file tree
Showing 58 changed files with 276 additions and 1,757 deletions.
4 changes: 4 additions & 0 deletions anygetter.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package jaws

import "errors"

var ErrValueNotSettable = errors.New("value not settable")

type AnyGetter interface {
JawsGetAny(elem *Element) (value any)
}
Expand Down
6 changes: 0 additions & 6 deletions anysetter.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package jaws

import (
"sync/atomic"
)

type AnySetter interface {
AnyGetter
// JawsSetAny may return ErrValueUnchanged to indicate value was already set.
Expand All @@ -15,8 +11,6 @@ func makeAnySetter(v any) AnySetter {
switch v := v.(type) {
case AnySetter:
return v
case *atomic.Value:
return atomicSetter{v}
}
return anyGetter{v}
}
8 changes: 0 additions & 8 deletions anysetter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ func Test_makeAnySetter(t *testing.T) {
err: ErrValueNotSettable,
tag: nil,
},
{
name: "*atomic.Value",
v: &av,
want: atomicSetter{&av},
in: -val,
out: val,
tag: &av,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down
94 changes: 0 additions & 94 deletions atomicsetter.go

This file was deleted.

156 changes: 0 additions & 156 deletions atomicsetter_test.go

This file was deleted.

74 changes: 0 additions & 74 deletions bool.go

This file was deleted.

Loading

0 comments on commit ee6be70

Please sign in to comment.