1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-06-20 23:59:26 +02:00

Switched from deprecated terminal.ReadPassword to term.ReadPassword in examples: basicauth, create, renderedfields and searchpages

This commit is contained in:
manuelbcd
2021-03-04 16:12:06 +00:00
parent 51be7924f8
commit 39d06f7d62
5 changed files with 13 additions and 16 deletions

View File

@ -3,13 +3,13 @@ package main
import (
"bufio"
"fmt"
"golang.org/x/term"
"net/http"
"os"
"strings"
"syscall"
jira "github.com/andygrunwald/go-jira"
"golang.org/x/crypto/ssh/terminal"
)
func main() {
@ -26,7 +26,7 @@ func main() {
username, _ := r.ReadString('\n')
fmt.Print("Jira Password: ")
bytePassword, _ := terminal.ReadPassword(int(syscall.Stdin))
bytePassword, _ := term.ReadPassword(int(syscall.Stdin))
password := string(bytePassword)
var tp *http.Client