Skip to content

Commit d14d4a2

Browse files
committed
Apply go fmt
1 parent f180ac0 commit d14d4a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

unicode.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ func (*recognizerUtf16le) Match(input *recognizerInput) (output recognizerOutput
3838
}
3939

4040
type recognizerUtf32 struct {
41-
name string
42-
bom []byte
41+
name string
42+
bom []byte
4343
decodeChar func(input []byte) rune
4444
}
4545

4646
func decodeUtf32be(input []byte) rune {
47-
return rune(input[0] << 24 | input[1] << 16 | input[2] << 8 | input[3])
47+
return rune(input[0]<<24 | input[1]<<16 | input[2]<<8 | input[3])
4848
}
4949

5050
func decodeUtf32le(input []byte) rune {
51-
return rune(input[3] << 24 | input[2] << 16 | input[1] << 8 | input[0])
51+
return rune(input[3]<<24 | input[2]<<16 | input[1]<<8 | input[0])
5252
}
5353

5454
func newRecognizerUtf32be() *recognizerUtf32 {
@@ -68,7 +68,7 @@ func newRecognizerUtf32le() *recognizerUtf32 {
6868
}
6969

7070
func (r *recognizerUtf32) Match(input *recognizerInput) (output recognizerOutput) {
71-
output = recognizerOutput {
71+
output = recognizerOutput{
7272
Charset: r.name,
7373
}
7474
hasBom := bytes.HasPrefix(input.raw, r.bom)

0 commit comments

Comments
 (0)