Move module to git.codemonkeysoftware.net
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package attribute
|
||||
|
||||
import "gitlab.codemonkeysoftware.net/b/hatmill"
|
||||
import "git.codemonkeysoftware.net/b/hatmill"
|
||||
|
||||
type AccessKeyCode rune
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
package attribute_test
|
||||
|
||||
import (
|
||||
"gitlab.codemonkeysoftware.net/b/hatmill/attribute"
|
||||
"testing"
|
||||
|
||||
"git.codemonkeysoftware.net/b/hatmill/attribute"
|
||||
)
|
||||
|
||||
func TestAccessKeyCodeString(t *testing.T) {
|
||||
|
||||
@@ -3,7 +3,7 @@ package attribute
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
"gitlab.codemonkeysoftware.net/b/hatmill"
|
||||
"git.codemonkeysoftware.net/b/hatmill"
|
||||
)
|
||||
|
||||
type CoordsList []float32
|
||||
|
||||
@@ -3,7 +3,7 @@ package attribute_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"gitlab.codemonkeysoftware.net/b/hatmill/attribute"
|
||||
"git.codemonkeysoftware.net/b/hatmill/attribute"
|
||||
)
|
||||
|
||||
func TestCoordsList(t *testing.T) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package attribute
|
||||
|
||||
import "gitlab.codemonkeysoftware.net/b/hatmill"
|
||||
import "git.codemonkeysoftware.net/b/hatmill"
|
||||
|
||||
// CustomData creates an attribute of the form data-suffix='value'.
|
||||
func CustomData(suffix, value string) hatmill.Attrib {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// GENERATED BY gitlab.codemonkeysoftware.net/b/hatmill/internal/codegen
|
||||
// GENERATED BY git.codemonkeysoftware.net/b/hatmill/internal/codegen
|
||||
// DO NOT EDIT!
|
||||
|
||||
package attribute
|
||||
|
||||
import "gitlab.codemonkeysoftware.net/b/hatmill"
|
||||
import "git.codemonkeysoftware.net/b/hatmill"
|
||||
|
||||
// Accept creates a "accept" attribute
|
||||
func Accept(value ...string) hatmill.Attrib {
|
||||
@@ -38,8 +38,8 @@ func Alt(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Async creates a "async" attribute
|
||||
func Async(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Async(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -64,8 +64,8 @@ func Autocomplete(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Autofocus creates a "autofocus" attribute
|
||||
func Autofocus(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Autofocus(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -74,8 +74,8 @@ func Autofocus(b bool) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Autoplay creates a "autoplay" attribute
|
||||
func Autoplay(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Autoplay(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -92,8 +92,8 @@ func Charset(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Checked creates a "checked" attribute
|
||||
func Checked(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Checked(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -158,8 +158,8 @@ func Contextmenu(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Controls creates a "controls" attribute
|
||||
func Controls(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Controls(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -192,8 +192,8 @@ func Decoding(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Default creates a "default" attribute
|
||||
func Default(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Default(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -202,8 +202,8 @@ func Default(b bool) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Defer creates a "defer" attribute
|
||||
func Defer(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Defer(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -228,8 +228,8 @@ func Dirname(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Disabled creates a "disabled" attribute
|
||||
func Disabled(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Disabled(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -310,8 +310,8 @@ func Height(value int) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Hidden creates a "hidden" attribute
|
||||
func Hidden(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Hidden(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -360,8 +360,8 @@ func Id(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Ismap creates a "ismap" attribute
|
||||
func Ismap(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Ismap(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -410,8 +410,8 @@ func List(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Loop creates a "loop" attribute
|
||||
func Loop(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Loop(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -476,8 +476,8 @@ func Minlength(value int) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Multiple creates a "multiple" attribute
|
||||
func Multiple(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Multiple(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -486,8 +486,8 @@ func Multiple(b bool) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Muted creates a "muted" attribute
|
||||
func Muted(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Muted(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -504,8 +504,8 @@ func Name(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Novalidate creates a "novalidate" attribute
|
||||
func Novalidate(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Novalidate(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -514,8 +514,8 @@ func Novalidate(b bool) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Open creates a "open" attribute
|
||||
func Open(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Open(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -572,8 +572,8 @@ func Preload(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Readonly creates a "readonly" attribute
|
||||
func Readonly(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Readonly(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -598,8 +598,8 @@ func Rel(value ...string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Required creates a "required" attribute
|
||||
func Required(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Required(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -608,8 +608,8 @@ func Required(b bool) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Reversed creates a "reversed" attribute
|
||||
func Reversed(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Reversed(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
@@ -650,8 +650,8 @@ func Scope(value string) hatmill.Attrib {
|
||||
}
|
||||
|
||||
// Selected creates a "selected" attribute
|
||||
func Selected(b bool) hatmill.Attrib {
|
||||
if !b {
|
||||
func Selected(showAttrib bool) hatmill.Attrib {
|
||||
if !showAttrib {
|
||||
return hatmill.Attrib{}
|
||||
}
|
||||
return hatmill.Attrib{
|
||||
|
||||
@@ -3,7 +3,7 @@ package attribute_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"gitlab.codemonkeysoftware.net/b/hatmill/attribute"
|
||||
"git.codemonkeysoftware.net/b/hatmill/attribute"
|
||||
)
|
||||
|
||||
func TestBool(t *testing.T) {
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
package attribute
|
||||
|
||||
import "strconv"
|
||||
import "gitlab.codemonkeysoftware.net/b/hatmill"
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"git.codemonkeysoftware.net/b/hatmill"
|
||||
)
|
||||
|
||||
type StepValue float32
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
package attribute_test
|
||||
|
||||
import (
|
||||
"gitlab.codemonkeysoftware.net/b/hatmill/attribute"
|
||||
"gitlab.codemonkeysoftware.net/b/hatmill/element"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"git.codemonkeysoftware.net/b/hatmill/attribute"
|
||||
"git.codemonkeysoftware.net/b/hatmill/element"
|
||||
)
|
||||
|
||||
func TestStepValue(t *testing.T) {
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
package attribute_test
|
||||
|
||||
import (
|
||||
"gitlab.codemonkeysoftware.net/b/hatmill/attribute"
|
||||
"testing"
|
||||
|
||||
"git.codemonkeysoftware.net/b/hatmill/attribute"
|
||||
)
|
||||
|
||||
func expectEqualStrings(t *testing.T, actual, expected string) {
|
||||
|
||||
Reference in New Issue
Block a user