Versions in this module Expand all Collapse all v0 v0.3.1 Dec 2, 2020 Changes in this version + var ClickCursor seed.Option + func Decrypt(data string) []byte + func Element(c seed.Seed) string + func Encrypt(data []byte) string + func Handler(w http.ResponseWriter, r *http.Request, id string) + func ID(c seed.Seed) string + func Key() (key [32]byte) + func On(event string, do ...Script) seed.Option + func OnChange(do ...Script) seed.Option + func OnClick(do ...Script) seed.Option + func OnEnterKey(do ...Script) seed.Option + func OnError(do func(err String) Script) seed.Option + func OnInput(do ...Script) seed.Option + func OnLoad(do ...Script) seed.Option + func OnRender(do ...Script) seed.Option + func Option(o seed.Option, q js.Ctx) seed.Option + func RegisterRenderer(r Renderer) + func RegisterRootRenderer(r Renderer) + func Render(root seed.Seed) []byte + func Reverse(o seed.Option, q js.Ctx) seed.Option + func SetID(id string) seed.Option + func Split(s String, sep String) js.Array + func Unique() string + type Bool = js.AnyBool + func NewBool(from bool) Bool + type Compound interface + Components func() []Value + type Cookie struct + MaxAge time.Duration + Name string + func NewCookie(name string) Cookie + type Data struct + On map[string]js.Script + type File interface + GetFile func() js.Value + type Float = js.AnyNumber + func NewFloat64(from float64) Float + type Function = js.AnyFunction + func NewFunction(from js.Script) Function + type IfElseChain struct + func If(condition Bool, do ...Script) IfElseChain + func (chain IfElseChain) Else(do ...Script) Script + type Int = js.AnyNumber + func NewInt(from int) Int + type Mode int8 + const AddTo + const Undo + func Seed(c seed.Seed) (Mode, js.Ctx) + type Name struct + func NameAs(s String) Name + type Object = js.AnyObject + type Redirect string + func (r Redirect) Error() string + type Renderer func(root seed.Seed) []byte + type Request struct + Path string + Response io.Writer + func NewRequest(w http.ResponseWriter, r *http.Request) Request + func (cr Request) Arg(name string) string + func (cr Request) Get(c Cookie) string + func (cr Request) Local() (local bool) + func (cr Request) Serve(handler http.Handler) + func (cr Request) Set(c Cookie, value string) + type Requesty interface + FromRequest func(Request) error + type Script = js.AnyScript + func Adopt(c seed.Seed) Script + func After(duration time.Duration, do ...Script) Script + func Cancel() Script + func Download(fn interface{}, args ...Value) Script + func Go(fn interface{}, args ...Value) Script + func NewScript(do ...Script) Script + func Open(url String) Script + func Print() Script + func Run(fn interface{}, args ...Value) Script + func Throw(err String) Script + type Stream struct + func (s Stream) Close() error + func (s Stream) Name() string + func (s Stream) Read(b []byte) (int, error) + func (s Stream) Size() int64 + type String js.AnyString + func NewString(literal string) String + type Value = js.AnyValue + func Call(fn interface{}, args ...Value) Value + func FlattenComponents(components ...Value) []Value + func ValueOf(any interface{}) Value v0.3.0 Dec 2, 2020