// Visit walks the AST performing spell checking on any string literals.
Visit walks the AST performing spell checking on any string literals.
// Visit walks the AST performing spell checking on any string literals .
func (c *checker) Visit(n ast.Node) ast.Visitor {
	if n, ok := n.(*ast.BasicLit); ok && n.Kind == token.STRING {
		c.check(n.Value, n.Pos(), "string")
	}
	return c
}
func ( c * checker ) Visit ( n ast . Node ) ast . Visitor { if n , ok := n . ( * ast . BasicLit ) ; ok && n . Kind == token . STRING { c . check ( n . Value , n . Pos ( ) , " " ) } return c }
Visit walks the AST performing spell checking on any string literals.
Visit walks the AST performing spell checking on any string literals .