You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: set.go
    path of file: ./repos/encore/cli/cmd/encore/secrets
    
    the code of the file until where you have to start completion: package secrets

import (
	"bytes"
	"context"
	"encoding/json"
	"fmt"
	"io"
	"os"
	"slices"
	"sort"
	"stri
    
func readSecretValue() string {
	var value string
	fd := syscall.Stdin
	if terminal.IsTerminal(int(fd)) {
		fmt.Fprint(os.Stderr, "Enter secret value: ")
		data, err := terminal.ReadPassword(int(fd))
		if err != nil {
			cmdutil.Fatal(err)
		}
		value = string(data)
		fmt.Fprintln(os.Stderr)
	} else {
		data, err := io.ReadAll(os.Stdin)
		if err != nil {
			cmdutil.Fatal(err)
		}
		value = string(bytes.TrimRight(data, "\r\n"))
	}
	return value
}