mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 01:25:10 +00:00
Remove toolchain from off_chain_data
And a very minor code change to exploit new standard library functions. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
This commit is contained in:
parent
099f52ba3f
commit
9fc8675e8d
2 changed files with 4 additions and 10 deletions
|
|
@ -3,7 +3,9 @@ package main
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"maps"
|
||||||
"os"
|
"os"
|
||||||
|
"slices"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
@ -55,12 +57,6 @@ func printUsage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func availableCommands() string {
|
func availableCommands() string {
|
||||||
result := make([]string, len(allCommands))
|
commandNames := slices.Collect(maps.Keys(allCommands))
|
||||||
i := 0
|
return strings.Join(commandNames, ", ")
|
||||||
for command := range allCommands {
|
|
||||||
result[i] = command
|
|
||||||
i++
|
|
||||||
}
|
|
||||||
|
|
||||||
return strings.Join(result, ", ")
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@ module offchaindata
|
||||||
|
|
||||||
go 1.23.0
|
go 1.23.0
|
||||||
|
|
||||||
toolchain go1.24.5
|
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/google/uuid v1.6.0
|
github.com/google/uuid v1.6.0
|
||||||
github.com/hyperledger/fabric-gateway v1.8.0
|
github.com/hyperledger/fabric-gateway v1.8.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue