footnote

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

* Footnote

为一段字符串添加注脚

** before
#+BEGIN_SRC 
this is line 1.
and another line....
yet another line...
ok , the last line
#+END_SRC


** after
#+BEGIN_SRC 
this is line 1.
and another line....                  (1)
yet another line...
ok , the last line                    (2)

-----------------------------------------

1) note text
   here for (1)
2) note text here for (2)
#+END_SRC

** Usage
   
   - func New(content string) *FootNote 

     initial

   - func (f *FootNote) NoteLine(line int, note string) *FootNote 

     note line, line num begin from 0

   - func (f *FootNote) NotePoint(pos int, note string) *FootNote 

     note position, will compute line number

   - func (f *FootNote) Dump() string 
     
     generate result string

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FootNote

type FootNote struct {
	// contains filtered or unexported fields
}

func New

func New(content string) *FootNote

func (*FootNote) Dump

func (f *FootNote) Dump() string

func (*FootNote) NoteLine

func (f *FootNote) NoteLine(line int, note string) *FootNote

func (*FootNote) NotePoint

func (f *FootNote) NotePoint(pos int, note string) *FootNote

func (*FootNote) NoteRegex

func (f *FootNote) NoteRegex(regex *regexp.Regexp, note string) *FootNote

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL