Source File
newline_token.go
Belonging Package
github.com/aws/aws-sdk-go/internal/ini
package ini
func ( []rune) bool {
if len() == 0 {
return false
}
if [0] == '\n' {
return true
}
if len() < 2 {
return false
}
return [0] == '\r' && [1] == '\n'
}
func ( []rune) (Token, int, error) {
:= 1
if [0] == '\r' && isNewline([1:]) {
++
}
if !isNewline([]rune([:])) {
return emptyToken, 0, NewParseError("invalid new line token")
}
return newToken(TokenNL, [:], NoneType), , nil
![]() |
The pages are generated with Golds v0.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. |