Movatterモバイル変換


[0]ホーム

URL:


reader

package
v0.20.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2025 License:MITImports:5Imported by:0

Details

Repository

github.com/terraform-docs/terraform-docs

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeLines

type Lines struct {FileNamestringLineNumint// value -1 means scan the whole file and break after finding what we were looking forCondition func(linestring)boolParser    func(linestring) (string,bool)}

Lines represents line reader in a given 'FileName' immediatelybefore the given 'LineNum'. Extraction happens when 'Condition'is met and being processed by 'Parser' function.

func (*Lines)Extract

func (l *Lines) Extract() ([]string,error)

Extract extracts lines in given file and based on the providedcondition. returns empty if nothing found.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp