github.com/april1989/origin-go-tools@v0.0.32/internal/span/token112.go (about) 1 // Copyright 2019 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 // +build go1.12 6 7 package span 8 9 import ( 10 "go/token" 11 ) 12 13 // TODO(rstambler): Delete this file when we no longer support Go 1.11. 14 func lineStart(f *token.File, line int) token.Pos { 15 return f.LineStart(line) 16 }