Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
Copyright 2016 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
package idna
This file implements the Punycode algorithm from RFC 3492.
import (
)
These parameter values are specified in section 5. All computation is done with int32s, so that overflow behavior is identical regardless of whether int is 32-bit or 64-bit.
encode encodes a string as specified in section 6.3 and prepends prefix to the result. The "while h < length(input)" line in the specification becomes "for remaining != 0" in the Go code, because len(s) in Go is in bytes, not runes.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.