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:
Mark S. Lewis 2025-07-25 08:51:54 +01:00
parent 099f52ba3f
commit 9fc8675e8d
No known key found for this signature in database
2 changed files with 4 additions and 10 deletions

View file

@ -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, ", ")
} }

View file

@ -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