anko icon indicating copy to clipboard operation
anko copied to clipboard

Scriptable interpreter written in golang

Results 25 anko issues
Sort by recently updated
recently updated
newest added

In Go, a method defined on a pointer like this: ```go func (u *User) SayHello() {...} ``` May be called on a pointer or on an instance: ```go user1 :=...

https://github.com/mattn/anko/issues/72

Add select to the language examples: ```go a = make(chan int64, 1) select { case

I've been using anko for my [music player](https://github.com/issadarkthing/gomu) and I wanted to implement auto completion. By adding `GetValueSymbols` and `GetTypeSymbols`, I will be able to easily fetch symbols of the...

test code: ``` go type FooStruct struct { function func(string) Pointer *int Slice []string Map map[string]string Channel chan string Function func(string) Interface interface{} Transport http.RoundTripper Str2 FooStruct2 Str2p *FooStruct2 }...

type A struct{ B func(i int) int } I want to create a function in the template for A.B Or how to achieve func(a []reflect.Value) []reflect.Value

Found in fuzz test with [go-fuzz](https://github.com/dvyukov/go-fuzz) input: `"\ue031"` ```main.go package main import "github.com/mattn/anko/parser" func main() { _, err := parser.ParseSrc("\ue031") if err != nil { panic(err) } } ``` ```...

Hello @mattn, My first PR in this repository: Find prime numbers I will add more examples in future, No problem? Regards, Max Base

Anko code ``` module User{ _age = -1 _name = "undefined" func SetAge(age) { _age = age } func SetName(name) { _name = name } } data = [ {...