mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-03 23:09:57 -05:00
Updated comments
This commit is contained in:
parent
afbda595f6
commit
eb48885d4d
1 changed files with 7 additions and 4 deletions
|
@ -176,10 +176,11 @@ func (p *parser) directives() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// doImport swaps out the import directive and its argument
|
// doImport swaps out the import directive and its argument
|
||||||
// (a total of 2 tokens) with the tokens in the file specified.
|
// (a total of 2 tokens) with the tokens in the specified file
|
||||||
// When the function returns, the cursor is on the token before
|
// or globbing pattern. When the function returns, the cursor
|
||||||
// where the import directive was. In other words, call Next()
|
// is on the token before where the import directive was. In
|
||||||
// to access the first token that was imported.
|
// other words, call Next() to access the first token that was
|
||||||
|
// imported.
|
||||||
func (p *parser) doImport() error {
|
func (p *parser) doImport() error {
|
||||||
if !p.NextArg() {
|
if !p.NextArg() {
|
||||||
return p.ArgErr()
|
return p.ArgErr()
|
||||||
|
@ -218,6 +219,8 @@ func (p *parser) doImport() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// doSingleImport lexes the individual files matching the
|
||||||
|
// globbing pattern from of the import directive.
|
||||||
func (p *parser) doSingleImport(importFile string) error {
|
func (p *parser) doSingleImport(importFile string) error {
|
||||||
file, err := os.Open(importFile)
|
file, err := os.Open(importFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue