Make client input available for LOAD instruction execution

This commit is contained in:
lash
2023-04-13 07:56:35 +01:00
parent a2d947e106
commit 46288b240b
7 changed files with 24 additions and 23 deletions

View File

@@ -41,19 +41,19 @@ func funcFor(sym string) (resource.EntryFunc, error) {
return nil, fmt.Errorf("unknown func: %s", sym)
}
func getFoo(sym string, ctx context.Context) (string, error) {
func getFoo(sym string, input []byte, ctx context.Context) (string, error) {
return "inky", nil
}
func getBar(sym string, ctx context.Context) (string, error) {
func getBar(sym string, input []byte, ctx context.Context) (string, error) {
return "pinky", nil
}
func getBaz(sym string, ctx context.Context) (string, error) {
func getBaz(sym string, input []byte, ctx context.Context) (string, error) {
return "blinky", nil
}
func getXyzzy(sym string, ctx context.Context) (string, error) {
func getXyzzy(sym string, input []byte, ctx context.Context) (string, error) {
return "inky pinky\nblinky clyde sue\ntinkywinky dipsy\nlala poo\none two three four five six seven\neight nine ten\neleven twelve", nil
}