We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pub interface IKeyValueStore { Get<T>(key string) (some T, none any) Set<T>(key string, value T) (ok any, err error) Delete(key string) (res any, err error) } def Foo(sig any) (res any, err error) { kv_get IKeyValueStore.Get<int> kv_set IKeyValueStore.Set<int> kv_del IKeyValueStore.Delete? --- :sig -> 'foo' -> kv_get kv_get:some -> 'bar' -> kv_set kv_set:ok -> 'foo' -> kv_del -> :res } ... import { redis runtime } def Main(start any) (stop any) { foo_redis Foo{redis} // passing a package as a dependency panic runtime.Panic --- :start -> foo_redis foo_redis:res -> :stop foo_redis:err -> panic }
Normal interface describes component - input and output ports. Package interface describes package - public components are like methods.
The text was updated successfully, but these errors were encountered:
emil14
No branches or pull requests
Normal interface describes component - input and output ports. Package interface describes package - public components are like methods.
The text was updated successfully, but these errors were encountered: