github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/syntax/source.go (about)

     1  // Copyright 2016 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // This file implements source, a buffered rune reader
     6  // specialized for scanning Go code: Reading
     7  // ASCII characters, maintaining current (line, col)
     8  // position information, and recording of the most
     9  // recently read source segment are highly optimized.
    10  // This file is self-contained (go tool compile source.go
    11  // compiles) and thus could be made into its own package.
    12  
    13  package syntax