mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-18 07:55: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 (
|
||||
"errors"
|
||||
"fmt"
|
||||
"maps"
|
||||
"os"
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
"google.golang.org/grpc"
|
||||
|
|
@ -55,12 +57,6 @@ func printUsage() {
|
|||
}
|
||||
|
||||
func availableCommands() string {
|
||||
result := make([]string, len(allCommands))
|
||||
i := 0
|
||||
for command := range allCommands {
|
||||
result[i] = command
|
||||
i++
|
||||
}
|
||||
|
||||
return strings.Join(result, ", ")
|
||||
commandNames := slices.Collect(maps.Keys(allCommands))
|
||||
return strings.Join(commandNames, ", ")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@ module offchaindata
|
|||
|
||||
go 1.23.0
|
||||
|
||||
toolchain go1.24.5
|
||||
|
||||
require (
|
||||
github.com/google/uuid v1.6.0
|
||||
github.com/hyperledger/fabric-gateway v1.8.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue