Standard library / crypto/tls
tls.CurveID.String()
Returns a readable key-exchange group identifier. Expected stdout: 'X25519\n'.
Formal Syntax & Structure
go syntaxgo
func (i CurveID) String() stringReturn Value
string
Result of the operation; handle any returned error before using other results.
Working Example
Example Snippetgo
package main
import ( "crypto/tls" "fmt")
func main() { fmt.Println(tls.X25519.String()) }
func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}