├── 1.10 ├── test ├── s2i │ └── bin │ │ ├── run │ │ ├── save-artifacts │ │ ├── usage │ │ └── assemble ├── root │ └── opt │ │ └── app-root │ │ └── etc │ │ └── scl_enable ├── Dockerfile.fedora ├── Dockerfile ├── Dockerfile.rhel7 └── README.md ├── 1.11 ├── test ├── s2i │ └── bin │ │ ├── run │ │ ├── save-artifacts │ │ ├── usage │ │ └── assemble ├── root │ └── opt │ │ └── app-root │ │ └── etc │ │ └── scl_enable ├── Dockerfile.fedora └── README.md ├── 1.12 ├── test ├── s2i │ └── bin │ │ ├── run │ │ ├── save-artifacts │ │ ├── usage │ │ └── assemble ├── root │ └── opt │ │ └── app-root │ │ └── etc │ │ └── scl_enable ├── Dockerfile.fedora └── README.md ├── 1.13 ├── test ├── s2i │ └── bin │ │ ├── run │ │ ├── save-artifacts │ │ ├── usage │ │ └── assemble ├── root │ └── opt │ │ └── app-root │ │ └── etc │ │ └── scl_enable ├── Dockerfile.fedora └── README.md ├── 1.14 ├── test ├── s2i │ └── bin │ │ ├── run │ │ ├── save-artifacts │ │ ├── usage │ │ └── assemble ├── root │ └── opt │ │ └── app-root │ │ └── etc │ │ └── scl_enable ├── Dockerfile.fedora └── README.md ├── 1.15 ├── test ├── s2i │ └── bin │ │ ├── run │ │ ├── save-artifacts │ │ ├── usage │ │ └── assemble ├── root │ └── opt │ │ └── app-root │ │ └── etc │ │ └── scl_enable ├── Dockerfile.fedora └── README.md ├── 1.8 ├── test ├── s2i │ └── bin │ │ ├── run │ │ ├── save-artifacts │ │ ├── usage │ │ └── assemble ├── root │ └── opt │ │ └── app-root │ │ └── etc │ │ └── scl_enable ├── Dockerfile.fedora └── README.md ├── 1.9 ├── test ├── s2i │ └── bin │ │ ├── run │ │ ├── save-artifacts │ │ ├── usage │ │ └── assemble ├── root │ └── opt │ │ └── app-root │ │ └── etc │ │ └── scl_enable ├── Dockerfile.fedora └── README.md ├── test ├── simple-app │ ├── s2i-build │ └── app │ │ └── hello.go ├── complete-app │ ├── s2i-build │ ├── s2i-build-incremental │ └── app │ │ ├── welcome │ │ └── welcome.go │ │ └── hello.go ├── import-with-vendor-app │ ├── app │ │ ├── vendor │ │ │ └── github.com │ │ │ │ └── russross │ │ │ │ └── blackfriday │ │ │ │ ├── testdata │ │ │ │ ├── Nested blockquotes.text │ │ │ │ ├── Tidyness.text │ │ │ │ ├── Nested blockquotes.html │ │ │ │ ├── Strong and em together.text │ │ │ │ ├── Literal quotes in titles.text │ │ │ │ ├── Tidyness.html │ │ │ │ ├── Code Spans.text │ │ │ │ ├── Literal quotes in titles.html │ │ │ │ ├── Blockquotes with code blocks.text │ │ │ │ ├── Inline HTML (Advanced).text │ │ │ │ ├── Inline HTML comments.text │ │ │ │ ├── Code Spans.html │ │ │ │ ├── Inline HTML (Advanced).html │ │ │ │ ├── Strong and em together.html │ │ │ │ ├── Hard-wrapped paragraphs with list-like lines.text │ │ │ │ ├── Code Blocks.text │ │ │ │ ├── Inline HTML comments.html │ │ │ │ ├── Hard-wrapped paragraphs with list-like lines.html │ │ │ │ ├── Hard-wrapped paragraphs with list-like lines no empty line before block.text │ │ │ │ ├── Blockquotes with code blocks.html │ │ │ │ ├── Links, inline style.text │ │ │ │ ├── Links, shortcut references.html │ │ │ │ ├── Auto links.text │ │ │ │ ├── Links, shortcut references.text │ │ │ │ ├── Hard-wrapped paragraphs with list-like lines no empty line before block.html │ │ │ │ ├── Code Blocks.html │ │ │ │ ├── Links, inline style.html │ │ │ │ ├── Tabs.text │ │ │ │ ├── Amps and angle encoding.text │ │ │ │ ├── Tabs.html │ │ │ │ ├── Amps and angle encoding.html │ │ │ │ ├── Horizontal rules.text │ │ │ │ ├── Auto links.html │ │ │ │ ├── Horizontal rules.html │ │ │ │ ├── Inline HTML (Simple).text │ │ │ │ ├── Inline HTML (Simple).html │ │ │ │ ├── Links, reference style.text │ │ │ │ ├── Links, reference style.html │ │ │ │ ├── Ordered and unordered lists.text │ │ │ │ ├── Backslash escapes.text │ │ │ │ ├── Backslash escapes.html │ │ │ │ ├── Ordered and unordered lists.html │ │ │ │ ├── Markdown Documentation - Basics.text │ │ │ │ └── Markdown Documentation - Basics.html │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── LICENSE.txt │ │ │ │ ├── doc.go │ │ │ │ ├── markdown_test.go │ │ │ │ ├── ref_test.go │ │ │ │ ├── latex.go │ │ │ │ ├── README.md │ │ │ │ └── smartypants.go │ │ ├── Dockerfile │ │ ├── README.md │ │ ├── Gopkg.lock │ │ ├── md2man │ │ │ ├── md2man.go │ │ │ ├── roff_test.go │ │ │ └── roff.go │ │ ├── Gopkg.toml │ │ ├── go-md2man.1.md │ │ ├── md2man.go │ │ └── LICENSE.md │ ├── s2i-build │ └── s2i-build-incremental ├── import-without-vendor-app │ ├── s2i-build │ ├── s2i-build-incremental │ └── app │ │ ├── Dockerfile │ │ ├── README.md │ │ ├── Gopkg.lock │ │ ├── md2man │ │ ├── md2man.go │ │ ├── roff_test.go │ │ └── roff.go │ │ ├── Gopkg.toml │ │ ├── go-md2man.1.md │ │ ├── md2man.go │ │ └── LICENSE.md └── run ├── .gitmodules ├── Makefile ├── .gitignore ├── LICENSE ├── README.md └── imagestreams ├── golang-rhel-aarch64.json ├── golang-rhel.json └── golang-centos.json /1.10/test: -------------------------------------------------------------------------------- 1 | ../test/ -------------------------------------------------------------------------------- /1.11/test: -------------------------------------------------------------------------------- 1 | ../test/ -------------------------------------------------------------------------------- /1.12/test: -------------------------------------------------------------------------------- 1 | ../test/ -------------------------------------------------------------------------------- /1.13/test: -------------------------------------------------------------------------------- 1 | ../test/ -------------------------------------------------------------------------------- /1.14/test: -------------------------------------------------------------------------------- 1 | ../test/ -------------------------------------------------------------------------------- /1.15/test: -------------------------------------------------------------------------------- 1 | ../test/ -------------------------------------------------------------------------------- /1.8/test: -------------------------------------------------------------------------------- 1 | ../test/ -------------------------------------------------------------------------------- /1.9/test: -------------------------------------------------------------------------------- 1 | ../test/ -------------------------------------------------------------------------------- /1.10/s2i/bin/run: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | exec /opt/app-root/gobinary 6 | -------------------------------------------------------------------------------- /1.11/s2i/bin/run: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | exec /opt/app-root/gobinary 6 | -------------------------------------------------------------------------------- /1.12/s2i/bin/run: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | exec /opt/app-root/gobinary 6 | -------------------------------------------------------------------------------- /1.13/s2i/bin/run: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | exec /opt/app-root/gobinary 6 | -------------------------------------------------------------------------------- /1.14/s2i/bin/run: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | exec /opt/app-root/gobinary 6 | -------------------------------------------------------------------------------- /1.15/s2i/bin/run: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | exec /opt/app-root/gobinary 6 | -------------------------------------------------------------------------------- /1.8/s2i/bin/run: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | exec /opt/app-root/gobinary 6 | -------------------------------------------------------------------------------- /1.9/s2i/bin/run: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | exec /opt/app-root/gobinary 6 | -------------------------------------------------------------------------------- /test/simple-app/s2i-build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | s2i build file://./app ${IMAGE_NAME} ${IMAGE_NAME}-testapp 3 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "common"] 2 | path = common 3 | url = https://github.com/sclorg/container-common-scripts.git 4 | -------------------------------------------------------------------------------- /test/complete-app/s2i-build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | s2i build -e IMPORT_URL='complete-app' ${s2i_args} file://./app ${IMAGE_NAME} ${IMAGE_NAME}-testapp 3 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Nested blockquotes.text: -------------------------------------------------------------------------------- 1 | > foo 2 | > 3 | > > bar 4 | > 5 | > foo 6 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/.gitignore: -------------------------------------------------------------------------------- 1 | *.out 2 | *.swp 3 | *.8 4 | *.6 5 | _obj 6 | _test* 7 | markdown 8 | tags 9 | -------------------------------------------------------------------------------- /test/complete-app/s2i-build-incremental: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | s2i build --incremental -e IMPORT_URL='complete-app' ${s2i_args} file://./app ${IMAGE_NAME} ${IMAGE_NAME}-testapp 3 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/s2i-build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' ${s2i_args} file://./app ${IMAGE_NAME} ${IMAGE_NAME}-testapp 3 | -------------------------------------------------------------------------------- /test/import-without-vendor-app/s2i-build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' ${s2i_args} file://./app ${IMAGE_NAME} ${IMAGE_NAME}-testapp 3 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Tidyness.text: -------------------------------------------------------------------------------- 1 | > A list within a blockquote: 2 | > 3 | > * asterisk 1 4 | > * asterisk 2 5 | > * asterisk 3 6 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/s2i-build-incremental: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | s2i build --incremental -e IMPORT_URL='github.com/cpuguy83/go-md2man' ${s2i_args} file://./app ${IMAGE_NAME} ${IMAGE_NAME}-testapp 3 | -------------------------------------------------------------------------------- /test/import-without-vendor-app/s2i-build-incremental: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | s2i build --incremental -e IMPORT_URL='github.com/cpuguy83/go-md2man' ${s2i_args} file://./app ${IMAGE_NAME} ${IMAGE_NAME}-testapp 3 | -------------------------------------------------------------------------------- /1.8/s2i/bin/save-artifacts: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | if [[ -d $HOME/go/pkg ]]; then 6 | 7 | pushd $HOME/go &> /dev/null 8 | 9 | tar -cf - pkg 10 | 11 | popd &> /dev/null 12 | 13 | fi 14 | 15 | -------------------------------------------------------------------------------- /1.9/s2i/bin/save-artifacts: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | if [[ -d $HOME/go/pkg ]]; then 6 | 7 | pushd $HOME/go &> /dev/null 8 | 9 | tar -cf - pkg 10 | 11 | popd &> /dev/null 12 | 13 | fi 14 | 15 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Nested blockquotes.html: -------------------------------------------------------------------------------- 1 |
2 |10 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Strong and em together.text: -------------------------------------------------------------------------------- 1 | ***This is strong and em.*** 2 | 3 | So is ***this*** word. 4 | 5 | ___This is strong and em.___ 6 | 7 | So is ___this___ word. 8 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Literal quotes in titles.text: -------------------------------------------------------------------------------- 1 | Foo [bar][]. 2 | 3 | Foo [bar](/url/ "Title with "quotes" inside"). 4 | 5 | 6 | [bar]: /url/ "Title with "quotes" inside" 7 | 8 | -------------------------------------------------------------------------------- /test/complete-app/app/welcome/welcome.go: -------------------------------------------------------------------------------- 1 | package welcome 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | ) 7 | 8 | func Welcome(w http.ResponseWriter, req *http.Request) { 9 | 10 | fmt.Fprintf(w, "Welcome to the Go toolset.") 11 | 12 | } 13 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Tidyness.html: -------------------------------------------------------------------------------- 1 |foo
3 | 4 |5 |7 | 8 |bar
6 |foo
9 |
2 |10 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Code Spans.text: -------------------------------------------------------------------------------- 1 | `A list within a blockquote:
3 | 4 |5 |
9 |- asterisk 1
6 |- asterisk 2
7 |- asterisk 3
8 |
Foo bar.
2 | 3 |Foo bar.
4 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Blockquotes with code blocks.text: -------------------------------------------------------------------------------- 1 | > Example: 2 | > 3 | > sub status { 4 | > print "working"; 5 | > } 6 | > 7 | > Or: 8 | > 9 | > sub status { 10 | > return "working"; 11 | > } 12 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:1.8 AS build 2 | COPY . /go/src/github.com/cpuguy83/go-md2man 3 | WORKDIR /go/src/github.com/cpuguy83/go-md2man 4 | RUN CGO_ENABLED=0 go build 5 | 6 | FROM scratch 7 | COPY --from=build /go/src/github.com/cpuguy83/go-md2man/go-md2man /go-md2man 8 | ENTRYPOINT ["/go-md2man"] 9 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Inline HTML (Advanced).text: -------------------------------------------------------------------------------- 1 | Simple block on one line: 2 | 3 |<test a=" content of attribute ">
Fix for backticks within HTML tag: like this
4 | 5 |Here's how you put `backticks` in a code span.
Simple block on one line:
2 | 3 |And nested without indentation:
6 | 7 |This is strong and em.
2 | 3 |So is this word.
4 | 5 |This is strong and em.
6 | 7 |So is this word.
8 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Hard-wrapped paragraphs with list-like lines.text: -------------------------------------------------------------------------------- 1 | In Markdown 1.0.0 and earlier. Version 2 | 8. This line turns into a list item. 3 | Because a hard-wrapped line in the 4 | middle of a paragraph looked like a 5 | list item. 6 | 7 | Here's one with a bullet. 8 | * criminey. 9 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Code Blocks.text: -------------------------------------------------------------------------------- 1 | code block on the first line 2 | 3 | Regular text. 4 | 5 | code block indented by spaces 6 | 7 | Regular text. 8 | 9 | the lines in this block 10 | all contain trailing spaces 11 | 12 | Regular Text. 13 | 14 | code block on the last line -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Inline HTML comments.html: -------------------------------------------------------------------------------- 1 |Paragraph one.
2 | 3 | 4 | 5 | 8 | 9 |Paragraph two.
10 | 11 | 12 | 13 |The end.
14 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Hard-wrapped paragraphs with list-like lines.html: -------------------------------------------------------------------------------- 1 |In Markdown 1.0.0 and earlier. Version 2 | 8. This line turns into a list item. 3 | Because a hard-wrapped line in the 4 | middle of a paragraph looked like a 5 | list item.
6 | 7 |Here's one with a bullet. 8 | * criminey.
9 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Hard-wrapped paragraphs with list-like lines no empty line before block.text: -------------------------------------------------------------------------------- 1 | In Markdown 1.0.0 and earlier. Version 2 | 8. This line turns into a list item. 3 | Because a hard-wrapped line in the 4 | middle of a paragraph looked like a 5 | list item. 6 | 7 | Here's one with a bullet. 8 | * criminey. 9 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Blockquotes with code blocks.html: -------------------------------------------------------------------------------- 1 |2 |16 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Links, inline style.text: -------------------------------------------------------------------------------- 1 | Just a [URL](/url/). 2 | 3 | [URL and title](/url/ "title"). 4 | 5 | [URL and title](/url/ "title preceded by two spaces"). 6 | 7 | [URL and title](/url/ "title preceded by a tab"). 8 | 9 | [URL and title](/url/ "title has spaces afterward" ). 10 | 11 | 12 | [Empty](). 13 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # Include common Makefile code. 2 | BASE_IMAGE_NAME = golang 3 | VERSIONS = 1.13 1.14 1.15 4 | OPENSHIFT_NAMESPACES = 5 | 6 | # HACK: Ensure that 'git pull' for old clones doesn't cause confusion. 7 | # New clones should use '--recursive'. 8 | .PHONY: $(shell test -f common/common.mk || echo >&2 'Please do "git submodule update --init" first.') 9 | 10 | include common/common.mk 11 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Links, shortcut references.html: -------------------------------------------------------------------------------- 1 |Example:
3 | 4 |8 | 9 |sub status { 5 | print "working"; 6 | } 7 |Or:
10 | 11 |15 |sub status { 12 | return "working"; 13 | } 14 |
This is the simple case.
2 | 3 |This one has a line 4 | break.
5 | 6 |This one has a line 7 | break with a line-ending space.
8 | 9 | 10 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Auto links.text: -------------------------------------------------------------------------------- 1 | Link:In Markdown 1.0.0 and earlier. Version
2 | 3 |Here's one with a bullet.
11 | 12 |code block on the first line
2 |
3 |
4 | Regular text.
5 | 6 |code block indented by spaces
7 |
8 |
9 | Regular text.
10 | 11 |the lines in this block
12 | all contain trailing spaces
13 |
14 |
15 | Regular Text.
16 | 17 |code block on the last line
18 |
19 |
--------------------------------------------------------------------------------
/test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Links, inline style.html:
--------------------------------------------------------------------------------
1 | Just a URL.
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |[Empty]().
12 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Tabs.text: -------------------------------------------------------------------------------- 1 | + this is a list item 2 | indented with tabs 3 | 4 | + this is a list item 5 | indented with spaces 6 | 7 | Code: 8 | 9 | this code block is indented by one tab 10 | 11 | And: 12 | 13 | this code block is indented by two tabs 14 | 15 | And: 16 | 17 | + this is an example list item 18 | indented with tabs 19 | 20 | + this is an example list item 21 | indented with spaces 22 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/README.md: -------------------------------------------------------------------------------- 1 | go-md2man 2 | ========= 3 | 4 | ** Work in Progress ** 5 | This still needs a lot of help to be complete, or even usable! 6 | 7 | Uses blackfriday to process markdown into man pages. 8 | 9 | ### Usage 10 | 11 | ./md2man -in /path/to/markdownfile.md -out /manfile/output/path 12 | 13 | ### How to contribute 14 | 15 | We use [govend](https://github.com/govend/govend) for vendoring Go packages. 16 | 17 | How to update dependencies: `govend -v -u --prune` 18 | 19 | -------------------------------------------------------------------------------- /test/import-without-vendor-app/app/README.md: -------------------------------------------------------------------------------- 1 | go-md2man 2 | ========= 3 | 4 | ** Work in Progress ** 5 | This still needs a lot of help to be complete, or even usable! 6 | 7 | Uses blackfriday to process markdown into man pages. 8 | 9 | ### Usage 10 | 11 | ./md2man -in /path/to/markdownfile.md -out /manfile/output/path 12 | 13 | ### How to contribute 14 | 15 | We use [govend](https://github.com/govend/govend) for vendoring Go packages. 16 | 17 | How to update dependencies: `govend -v -u --prune` 18 | 19 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/russross/blackfriday" 6 | packages = ["."] 7 | revision = "4048872b16cc0fc2c5fd9eacf0ed2c2fedaa0c8c" 8 | version = "v1.5" 9 | 10 | [solve-meta] 11 | analyzer-name = "dep" 12 | analyzer-version = 1 13 | inputs-digest = "d4fdd599038b13752bbcaf722cac55d8e6d81b6fd60bb325df3e31d71aaf358c" 14 | solver-name = "gps-cdcl" 15 | solver-version = 1 16 | -------------------------------------------------------------------------------- /test/import-without-vendor-app/app/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/russross/blackfriday" 6 | packages = ["."] 7 | revision = "4048872b16cc0fc2c5fd9eacf0ed2c2fedaa0c8c" 8 | version = "v1.5" 9 | 10 | [solve-meta] 11 | analyzer-name = "dep" 12 | analyzer-version = 1 13 | inputs-digest = "d4fdd599038b13752bbcaf722cac55d8e6d81b6fd60bb325df3e31d71aaf358c" 14 | solver-name = "gps-cdcl" 15 | solver-version = 1 16 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Amps and angle encoding.text: -------------------------------------------------------------------------------- 1 | AT&T has an ampersand in their name. 2 | 3 | AT&T is another way to write it. 4 | 5 | This & that. 6 | 7 | 4 < 5. 8 | 9 | 6 > 5. 10 | 11 | Here's a [link] [1] with an ampersand in the URL. 12 | 13 | Here's a link with an amersand in the link text: [AT&T] [2]. 14 | 15 | Here's an inline [link](/script?foo=1&bar=2). 16 | 17 | Here's an inline [link](). 18 | 19 | 20 | [1]: http://example.com/?foo=1&bar=2 21 | [2]: http://att.com/ "AT&T" -------------------------------------------------------------------------------- /test/simple-app/app/hello.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | ) 7 | 8 | func Welcome(w http.ResponseWriter, req *http.Request) { 9 | 10 | fmt.Fprintf(w, "Welcome to the Go toolset.") 11 | 12 | } 13 | 14 | func main() { 15 | 16 | fmt.Println("Hello.") 17 | fmt.Println("Starting http server.") 18 | 19 | // Register handler function 20 | 21 | http.HandleFunc("/welcome", Welcome) 22 | 23 | fmt.Println("Go to localhost:8080/welcome To terminate press CTRL+C") 24 | 25 | // Start server 26 | 27 | http.ListenAndServe(":8080", nil) 28 | } 29 | -------------------------------------------------------------------------------- /1.8/s2i/bin/usage: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DISTRO=`cat /etc/*-release | grep ^ID= | tr "=" "\n" | grep -v ^ID | grep -o '\w*'` 4 | NAMESPACE=centos 5 | [[ $DISTRO =~ rhel* ]] && NAMESPACE=rhscl 6 | 7 | cat <this is a list item 3 | indented with tabs
this is a list item 6 | indented with spaces
Code:
10 | 11 |this code block is indented by one tab
12 |
13 |
14 | And:
15 | 16 | this code block is indented by two tabs
17 |
18 |
19 | And:
20 | 21 |+ this is an example list item
22 | indented with tabs
23 |
24 | + this is an example list item
25 | indented with spaces
26 |
27 |
--------------------------------------------------------------------------------
/test/import-with-vendor-app/app/md2man/md2man.go:
--------------------------------------------------------------------------------
1 | package md2man
2 |
3 | import (
4 | "github.com/russross/blackfriday"
5 | )
6 |
7 | func Render(doc []byte) []byte {
8 | renderer := RoffRenderer(0)
9 | extensions := 0
10 | extensions |= blackfriday.EXTENSION_NO_INTRA_EMPHASIS
11 | extensions |= blackfriday.EXTENSION_TABLES
12 | extensions |= blackfriday.EXTENSION_FENCED_CODE
13 | extensions |= blackfriday.EXTENSION_AUTOLINK
14 | extensions |= blackfriday.EXTENSION_SPACE_HEADERS
15 | extensions |= blackfriday.EXTENSION_FOOTNOTES
16 | extensions |= blackfriday.EXTENSION_TITLEBLOCK
17 |
18 | return blackfriday.Markdown(doc, renderer, extensions)
19 | }
20 |
--------------------------------------------------------------------------------
/test/import-without-vendor-app/app/md2man/md2man.go:
--------------------------------------------------------------------------------
1 | package md2man
2 |
3 | import (
4 | "github.com/russross/blackfriday"
5 | )
6 |
7 | func Render(doc []byte) []byte {
8 | renderer := RoffRenderer(0)
9 | extensions := 0
10 | extensions |= blackfriday.EXTENSION_NO_INTRA_EMPHASIS
11 | extensions |= blackfriday.EXTENSION_TABLES
12 | extensions |= blackfriday.EXTENSION_FENCED_CODE
13 | extensions |= blackfriday.EXTENSION_AUTOLINK
14 | extensions |= blackfriday.EXTENSION_SPACE_HEADERS
15 | extensions |= blackfriday.EXTENSION_FOOTNOTES
16 | extensions |= blackfriday.EXTENSION_TITLEBLOCK
17 |
18 | return blackfriday.Markdown(doc, renderer, extensions)
19 | }
20 |
--------------------------------------------------------------------------------
/test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Amps and angle encoding.html:
--------------------------------------------------------------------------------
1 | AT&T has an ampersand in their name.
2 | 3 |AT&T is another way to write it.
4 | 5 |This & that.
6 | 7 |4 < 5.
8 | 9 |6 > 5.
10 | 11 |Here's a link with an ampersand in the URL.
12 | 13 |Here's a link with an amersand in the link text: AT&T.
14 | 15 |Here's an inline link.
16 | 17 |Here's an inline link.
18 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Horizontal rules.text: -------------------------------------------------------------------------------- 1 | Dashes: 2 | 3 | --- 4 | 5 | --- 6 | 7 | --- 8 | 9 | --- 10 | 11 | --- 12 | 13 | - - - 14 | 15 | - - - 16 | 17 | - - - 18 | 19 | - - - 20 | 21 | - - - 22 | 23 | 24 | Asterisks: 25 | 26 | *** 27 | 28 | *** 29 | 30 | *** 31 | 32 | *** 33 | 34 | *** 35 | 36 | * * * 37 | 38 | * * * 39 | 40 | * * * 41 | 42 | * * * 43 | 44 | * * * 45 | 46 | 47 | Underscores: 48 | 49 | ___ 50 | 51 | ___ 52 | 53 | ___ 54 | 55 | ___ 56 | 57 | ___ 58 | 59 | _ _ _ 60 | 61 | _ _ _ 62 | 63 | _ _ _ 64 | 65 | _ _ _ 66 | 67 | _ _ _ 68 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Auto links.html: -------------------------------------------------------------------------------- 1 |Link: http://example.com/.
2 | 3 |With an ampersand: http://example.com/?foo=1&bar=2
4 | 5 |12 |14 | 15 |Blockquoted: http://example.com/
13 |
Auto-links should not occur here: <http://example.com/>
or here: <http://example.com/>
18 |
19 |
--------------------------------------------------------------------------------
/test/import-with-vendor-app/app/Gopkg.toml:
--------------------------------------------------------------------------------
1 |
2 | # Gopkg.toml example
3 | #
4 | # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
5 | # for detailed Gopkg.toml documentation.
6 | #
7 | # required = ["github.com/user/thing/cmd/thing"]
8 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
9 | #
10 | # [[constraint]]
11 | # name = "github.com/user/project"
12 | # version = "1.0.0"
13 | #
14 | # [[constraint]]
15 | # name = "github.com/user/project2"
16 | # branch = "dev"
17 | # source = "github.com/myfork/project2"
18 | #
19 | # [[override]]
20 | # name = "github.com/x/y"
21 | # version = "2.4.0"
22 |
23 |
24 | [[constraint]]
25 | name = "github.com/russross/blackfriday"
26 | version = "1.4"
27 |
--------------------------------------------------------------------------------
/test/import-without-vendor-app/app/Gopkg.toml:
--------------------------------------------------------------------------------
1 |
2 | # Gopkg.toml example
3 | #
4 | # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
5 | # for detailed Gopkg.toml documentation.
6 | #
7 | # required = ["github.com/user/thing/cmd/thing"]
8 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
9 | #
10 | # [[constraint]]
11 | # name = "github.com/user/project"
12 | # version = "1.0.0"
13 | #
14 | # [[constraint]]
15 | # name = "github.com/user/project2"
16 | # branch = "dev"
17 | # source = "github.com/myfork/project2"
18 | #
19 | # [[override]]
20 | # name = "github.com/x/y"
21 | # version = "2.4.0"
22 |
23 |
24 | [[constraint]]
25 | name = "github.com/russross/blackfriday"
26 | version = "1.4"
27 |
--------------------------------------------------------------------------------
/test/import-with-vendor-app/app/go-md2man.1.md:
--------------------------------------------------------------------------------
1 | go-md2man 1 "January 2015" go-md2man "User Manual"
2 | ==================================================
3 |
4 | # NAME
5 | go-md2man - Convert mardown files into manpages
6 |
7 | # SYNOPSIS
8 | go-md2man -in=[/path/to/md/file] -out=[/path/to/output]
9 |
10 | # Description
11 | go-md2man converts standard markdown formatted documents into manpages. It is
12 | written purely in Go so as to reduce dependencies on 3rd party libs.
13 |
14 | By default, the input is stdin and the output is stdout.
15 |
16 | # Example
17 | Convert the markdown file "go-md2man.1.md" into a manpage.
18 |
19 | go-md2man -in=README.md -out=go-md2man.1.out
20 |
21 | # HISTORY
22 | January 2015, Originally compiled by Brian Goff( cpuguy83@gmail.com )
23 |
24 |
--------------------------------------------------------------------------------
/test/import-without-vendor-app/app/go-md2man.1.md:
--------------------------------------------------------------------------------
1 | go-md2man 1 "January 2015" go-md2man "User Manual"
2 | ==================================================
3 |
4 | # NAME
5 | go-md2man - Convert mardown files into manpages
6 |
7 | # SYNOPSIS
8 | go-md2man -in=[/path/to/md/file] -out=[/path/to/output]
9 |
10 | # Description
11 | go-md2man converts standard markdown formatted documents into manpages. It is
12 | written purely in Go so as to reduce dependencies on 3rd party libs.
13 |
14 | By default, the input is stdin and the output is stdout.
15 |
16 | # Example
17 | Convert the markdown file "go-md2man.1.md" into a manpage.
18 |
19 | go-md2man -in=README.md -out=go-md2man.1.out
20 |
21 | # HISTORY
22 | January 2015, Originally compiled by Brian Goff( cpuguy83@gmail.com )
23 |
24 |
--------------------------------------------------------------------------------
/test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Horizontal rules.html:
--------------------------------------------------------------------------------
1 | Dashes:
2 | 3 |---
12 |
13 |
14 | - - -
23 |
24 |
25 | Asterisks:
26 | 27 |***
36 |
37 |
38 | * * *
47 |
48 |
49 | Underscores:
50 | 51 |___
60 |
61 |
62 | _ _ _
71 |
72 |
--------------------------------------------------------------------------------
/test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 | language: go
3 | go:
4 | - 1.5.4
5 | - 1.6.2
6 | - tip
7 | matrix:
8 | include:
9 | - go: 1.2.2
10 | script:
11 | - go get -t -v ./...
12 | - go test -v -race ./...
13 | - go: 1.3.3
14 | script:
15 | - go get -t -v ./...
16 | - go test -v -race ./...
17 | - go: 1.4.3
18 | script:
19 | - go get -t -v ./...
20 | - go test -v -race ./...
21 | allow_failures:
22 | - go: tip
23 | fast_finish: true
24 | install:
25 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
26 | script:
27 | - go get -t -v ./...
28 | - diff -u <(echo -n) <(gofmt -d -s .)
29 | - go tool vet .
30 | - go test -v -race ./...
31 |
--------------------------------------------------------------------------------
/test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Inline HTML (Simple).text:
--------------------------------------------------------------------------------
1 | Here's a simple block:
2 |
3 | Here's a simple block:
2 | 3 |This should be a code block, though:
8 | 9 |<div>
10 | foo
11 | </div>
12 |
13 |
14 | As should this:
15 | 16 |<div>foo</div>
17 |
18 |
19 | Now, nested:
20 | 21 |This should just be an HTML comment:
30 | 31 | 32 | 33 |Multiline:
34 | 35 | 39 | 40 |Code block:
41 | 42 |<!-- Comment -->
43 |
44 |
45 | Just plain comment, with trailing spaces on the line:
46 | 47 | 48 | 49 |Code:
50 | 51 |<hr />
52 |
53 |
54 | Hr's:
55 | 56 |Foo bar.
2 | 3 |Foo bar.
4 | 5 |Foo bar.
6 | 7 |With embedded [brackets].
8 | 9 |Indented once.
10 | 11 |Indented twice.
12 | 13 |Indented thrice.
14 | 15 |Indented [four][] times.
16 | 17 |[four]: /url
18 |
19 |
20 | this should work
23 | 24 |So should this.
25 | 26 |And this.
27 | 28 |And this.
29 | 30 |And this.
31 | 32 |But not [that] [].
33 | 34 |Nor [that][].
35 | 36 |Nor [that].
37 | 38 |[Something in brackets like this should work]
39 | 40 |[Same with this.]
41 | 42 |In this case, this points to something else.
43 | 44 |Backslashing should suppress [this] and [this].
45 | 46 |Here's one where the link 49 | breaks across lines.
50 | 51 |Here's another where the link 52 | breaks across lines, but with a line-ending space.
53 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Golang container images 2 | ==================== 3 | 4 | This repository contains the source for building of 5 | the Go application as a reproducible s2i container image. 6 | Users can choose between RHEL, Fedora and CentOS based builder images. 7 | The resulting image can be run using [podman](https://github.com/containers/libpod), [Docker](http://docker.io) or using [source-to-image](https://github.com/openshift/source-to-image/). 8 | Also the whole pipeline from build to app deployment could be run on top of the [Openshift Origin](https://www.okd.io/) or [Red Hat's Openshift](https://www.openshift.com/). 9 | 10 | For more information about contributing, see 11 | [the Contribution Guidelines](https://github.com/sclorg/welcome/blob/master/contribution.md). 12 | For more information about concepts used in these container images, see the 13 | [Landing page](https://github.com/sclorg/welcome). 14 | 15 | 16 | Versions 17 | --------------- 18 | Golang versions currently provided are: 19 | * [Golang 1.8 (go-toolset 7, where applicable)](1.8) 20 | * [Golang 1.12](1.12) 21 | 22 | RHEL versions currently supported are: 23 | * RHEL7 24 | 25 | CentOS versions currently supported are: 26 | * CentOS7 27 | 28 | Fedora versions currently supported are: 29 | * Fedora 30 30 | 31 | 32 | Usage 33 | --------------------------------- 34 | 35 | For information about usage of Dockerfile for Golang Toolset 7 and Fedora golang, 36 | see usage documentation for respective Go versions [Go1.8](1.8/README.md) [Go1.12](1.12/README.md). 37 | -------------------------------------------------------------------------------- /1.8/s2i/bin/assemble: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | pushd /tmp/src 6 | 7 | if [[ `go list -f {{.Incomplete}}` == "true" || ! -z "$IMPORT_URL" ]]; then 8 | 9 | INSTALL_URL=${INSTALL_URL:-$IMPORT_URL} 10 | 11 | if [[ ! -z "$IMPORT_URL" ]]; then 12 | 13 | popd 14 | 15 | echo "Assembling GOPATH" 16 | 17 | export GOPATH=`realpath $HOME/go` 18 | 19 | mkdir -p $GOPATH/src/$IMPORT_URL 20 | 21 | mv /tmp/src/* $GOPATH/src/$IMPORT_URL 22 | 23 | if [[ -d /tmp/artifacts/pkg ]]; then 24 | 25 | echo "Restoring previous build artifacts" 26 | 27 | mv /tmp/artifacts/pkg $GOPATH 28 | 29 | fi 30 | 31 | # Resolve dependencies, ignore if vendor present 32 | 33 | if [[ ! -d $GOPATH/src/$INSTALL_URL/vendor && `go list -f {{.Incomplete}} $INSTALL_URL` == "true" ]]; then 34 | 35 | echo "Resolving dependencies" 36 | 37 | pushd $GOPATH/src/$INSTALL_URL 38 | 39 | go get 40 | 41 | popd 42 | 43 | fi 44 | 45 | # lets build 46 | 47 | pushd $GOPATH/src/$INSTALL_URL 48 | 49 | echo "Building" 50 | 51 | go install $INSTALL_URL 52 | 53 | mv $GOPATH/bin/* /opt/app-root/gobinary 54 | 55 | popd 56 | 57 | exit 58 | 59 | fi 60 | 61 | echo "ERROR: Package is missing dependencies and IMPORT_URL inference failed. Set IMPORT_URL env var." 62 | exec /$STI_SCRIPTS_PATH/usage 63 | 64 | else 65 | 66 | go build -o /opt/app-root/gobinary 67 | 68 | popd 69 | 70 | fi 71 | -------------------------------------------------------------------------------- /1.9/s2i/bin/assemble: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | pushd /tmp/src 6 | 7 | if [[ `go list -f {{.Incomplete}}` == "true" || ! -z "$IMPORT_URL" ]]; then 8 | 9 | INSTALL_URL=${INSTALL_URL:-$IMPORT_URL} 10 | 11 | if [[ ! -z "$IMPORT_URL" ]]; then 12 | 13 | popd 14 | 15 | echo "Assembling GOPATH" 16 | 17 | export GOPATH=`realpath $HOME/go` 18 | 19 | mkdir -p $GOPATH/src/$IMPORT_URL 20 | 21 | mv /tmp/src/* $GOPATH/src/$IMPORT_URL 22 | 23 | if [[ -d /tmp/artifacts/pkg ]]; then 24 | 25 | echo "Restoring previous build artifacts" 26 | 27 | mv /tmp/artifacts/pkg $GOPATH 28 | 29 | fi 30 | 31 | # Resolve dependencies, ignore if vendor present 32 | 33 | if [[ ! -d $GOPATH/src/$INSTALL_URL/vendor && `go list -f {{.Incomplete}} $INSTALL_URL` == "true" ]]; then 34 | 35 | echo "Resolving dependencies" 36 | 37 | pushd $GOPATH/src/$INSTALL_URL 38 | 39 | go get 40 | 41 | popd 42 | 43 | fi 44 | 45 | # lets build 46 | 47 | pushd $GOPATH/src/$INSTALL_URL 48 | 49 | echo "Building" 50 | 51 | go install $INSTALL_URL 52 | 53 | mv $GOPATH/bin/* /opt/app-root/gobinary 54 | 55 | popd 56 | 57 | exit 58 | 59 | fi 60 | 61 | echo "ERROR: Package is missing dependencies and IMPORT_URL inference failed. Set IMPORT_URL env var." 62 | exec /$STI_SCRIPTS_PATH/usage 63 | 64 | else 65 | 66 | go build -o /opt/app-root/gobinary 67 | 68 | popd 69 | 70 | fi 71 | -------------------------------------------------------------------------------- /1.8/Dockerfile.fedora: -------------------------------------------------------------------------------- 1 | FROM registry.fedoraproject.org/f26/s2i-base:latest 2 | 3 | ENV NAME=golang \ 4 | VERSION=1.8 \ 5 | ARCH=x86_64 6 | 7 | ENV SUMMARY="Platform for building and running Go $VERSION based applications" \ 8 | DESCRIPTION="Go $VERSION available as container is a base platform for \ 9 | building and running various Go $VERSION applications and frameworks. \ 10 | Go is an easy to learn, powerful, statically typed language in the C/C++ \ 11 | tradition with garbage collection, concurrent programming support, and memory safety features." 12 | 13 | LABEL summary="$SUMMARY" \ 14 | description="$DESCRIPTION" \ 15 | io.k8s.description="$DESCRIPTION" \ 16 | io.k8s.display-name="Go $VERSION" \ 17 | io.openshift.tags="builder,golang,golang18,rh-golang18,go" \ 18 | com.redhat.component="$NAME" \ 19 | name="$FGC/$NAME" \ 20 | version="$VERSION" \ 21 | architecture="$ARCH" \ 22 | maintainer="Jakub Cajka[]:<
\n", 68 | 69 | // This shouldn't panic. 70 | // https://github.com/russross/blackfriday/issues/173 71 | " [", 72 | "[
\n", 73 | } 74 | doTests(t, tests) 75 | } 76 | -------------------------------------------------------------------------------- /1.10/README.md: -------------------------------------------------------------------------------- 1 | Golang s2i container image 2 | =================== 3 | 4 | This repository contains the source for building various versions of 5 | the Go application as a reproducible s2i container image. 6 | Users can choose between RHEL, Fedora and CentOS based builder images. 7 | The resulting image can be run using [podman](https://github.com/containers/libpod), [Docker](http://docker.io) or using [source-to-image](https://github.com/openshift/source-to-image/). 8 | Also the whole pipeline from build to app deployment could be run on top of the [Openshift Origin](https://www.okd.io/) or [Red Hat's Openshift](https://www.openshift.com/). 9 | 10 | 11 | Usage 12 | --------------------- 13 | 14 | Simplest usage via s2i: 15 | 16 | s2i build ./src centos/go-toolset-7-centos7:latest test-app 17 | 18 | where ./src directory contains git repository with golang application that has complete dependencies. You can't use incremental build in this case. 19 | 20 | or 21 | 22 | s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' ./src centos/go-toolset-7-centos7:latest test-app 23 | 24 | where ./src directory contains git repository with golang application(in this case github.com/cpuguy83/go-md2man) that has complete or incomplete dependencies. You can use incremental build in this case. 25 | 26 | Both will build test-app application image. 27 | 28 | Environment variables 29 | --------------------- 30 | 31 | To set these environment variables, you can place them as a key value pair into a `.s2i/environment` 32 | file inside your source code repository or specified via s2i invocation. 33 | 34 | 35 | * **IMPORT_URL** 36 | 37 | Used to specify the golang application import URL (i.e. usually something like github.com/someorg/somerepo), that is build. Necessary for the incremental build to function. 38 | 39 | * **INSTALL_URL** 40 | 41 | Used to specify the golang application import URL of the main package (i.e. usually something like github.com/someorg/somerepo/subfolder). Necessary if the main package is not in the root folder of the repository. 42 | -------------------------------------------------------------------------------- /1.11/README.md: -------------------------------------------------------------------------------- 1 | Golang s2i container image 2 | =================== 3 | 4 | This repository contains the source for building various versions of 5 | the Go application as a reproducible s2i container image. 6 | Users can choose between RHEL, Fedora and CentOS based builder images. 7 | The resulting image can be run using [podman](https://github.com/containers/libpod), [Docker](http://docker.io) or using [source-to-image](https://github.com/openshift/source-to-image/). 8 | Also the whole pipeline from build to app deployment could be run on top of the [Openshift Origin](https://www.okd.io/) or [Red Hat's Openshift](https://www.openshift.com/). 9 | 10 | 11 | Usage 12 | --------------------- 13 | 14 | Simplest usage via s2i: 15 | 16 | s2i build ./src centos/go-toolset-7-centos7:latest test-app 17 | 18 | where ./src directory contains git repository with golang application that has complete dependencies. You can't use incremental build in this case. 19 | 20 | or 21 | 22 | s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' ./src centos/go-toolset-7-centos7:latest test-app 23 | 24 | where ./src directory contains git repository with golang application(in this case github.com/cpuguy83/go-md2man) that has complete or incomplete dependencies. You can use incremental build in this case. 25 | 26 | Both will build test-app application image. 27 | 28 | Environment variables 29 | --------------------- 30 | 31 | To set these environment variables, you can place them as a key value pair into a `.s2i/environment` 32 | file inside your source code repository or specified via s2i invocation. 33 | 34 | 35 | * **IMPORT_URL** 36 | 37 | Used to specify the golang application import URL (i.e. usually something like github.com/someorg/somerepo), that is build. Necessary for the incremental build to function. 38 | 39 | * **INSTALL_URL** 40 | 41 | Used to specify the golang application import URL of the main package (i.e. usually something like github.com/someorg/somerepo/subfolder). Necessary if the main package is not in the root folder of the repository. 42 | -------------------------------------------------------------------------------- /1.12/README.md: -------------------------------------------------------------------------------- 1 | Golang s2i container image 2 | =================== 3 | 4 | This repository contains the source for building various versions of 5 | the Go application as a reproducible s2i container image. 6 | Users can choose between RHEL, Fedora and CentOS based builder images. 7 | The resulting image can be run using [podman](https://github.com/containers/libpod), [Docker](http://docker.io) or using [source-to-image](https://github.com/openshift/source-to-image/). 8 | Also the whole pipeline from build to app deployment could be run on top of the [Openshift Origin](https://www.okd.io/) or [Red Hat's Openshift](https://www.openshift.com/). 9 | 10 | 11 | Usage 12 | --------------------- 13 | 14 | Simplest usage via s2i: 15 | 16 | s2i build ./src centos/go-toolset-7-centos7:latest test-app 17 | 18 | where ./src directory contains git repository with golang application that has complete dependencies. You can't use incremental build in this case. 19 | 20 | or 21 | 22 | s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' ./src centos/go-toolset-7-centos7:latest test-app 23 | 24 | where ./src directory contains git repository with golang application(in this case github.com/cpuguy83/go-md2man) that has complete or incomplete dependencies. You can use incremental build in this case. 25 | 26 | Both will build test-app application image. 27 | 28 | Environment variables 29 | --------------------- 30 | 31 | To set these environment variables, you can place them as a key value pair into a `.s2i/environment` 32 | file inside your source code repository or specified via s2i invocation. 33 | 34 | 35 | * **IMPORT_URL** 36 | 37 | Used to specify the golang application import URL (i.e. usually something like github.com/someorg/somerepo), that is build. Necessary for the incremental build to function. 38 | 39 | * **INSTALL_URL** 40 | 41 | Used to specify the golang application import URL of the main package (i.e. usually something like github.com/someorg/somerepo/subfolder). Necessary if the main package is not in the root folder of the repository. 42 | -------------------------------------------------------------------------------- /1.13/README.md: -------------------------------------------------------------------------------- 1 | Golang s2i container image 2 | =================== 3 | 4 | This repository contains the source for building various versions of 5 | the Go application as a reproducible s2i container image. 6 | Users can choose between RHEL, Fedora and CentOS based builder images. 7 | The resulting image can be run using [podman](https://github.com/containers/libpod), [Docker](http://docker.io) or using [source-to-image](https://github.com/openshift/source-to-image/). 8 | Also the whole pipeline from build to app deployment could be run on top of the [Openshift Origin](https://www.okd.io/) or [Red Hat's Openshift](https://www.openshift.com/). 9 | 10 | 11 | Usage 12 | --------------------- 13 | 14 | Simplest usage via s2i: 15 | 16 | s2i build ./src centos/go-toolset-7-centos7:latest test-app 17 | 18 | where ./src directory contains git repository with golang application that has complete dependencies. You can't use incremental build in this case. 19 | 20 | or 21 | 22 | s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' ./src centos/go-toolset-7-centos7:latest test-app 23 | 24 | where ./src directory contains git repository with golang application(in this case github.com/cpuguy83/go-md2man) that has complete or incomplete dependencies. You can use incremental build in this case. 25 | 26 | Both will build test-app application image. 27 | 28 | Environment variables 29 | --------------------- 30 | 31 | To set these environment variables, you can place them as a key value pair into a `.s2i/environment` 32 | file inside your source code repository or specified via s2i invocation. 33 | 34 | 35 | * **IMPORT_URL** 36 | 37 | Used to specify the golang application import URL (i.e. usually something like github.com/someorg/somerepo), that is build. Necessary for the incremental build to function. 38 | 39 | * **INSTALL_URL** 40 | 41 | Used to specify the golang application import URL of the main package (i.e. usually something like github.com/someorg/somerepo/subfolder). Necessary if the main package is not in the root folder of the repository. 42 | -------------------------------------------------------------------------------- /1.14/README.md: -------------------------------------------------------------------------------- 1 | Golang s2i container image 2 | =================== 3 | 4 | This repository contains the source for building various versions of 5 | the Go application as a reproducible s2i container image. 6 | Users can choose between RHEL, Fedora and CentOS based builder images. 7 | The resulting image can be run using [podman](https://github.com/containers/libpod), [Docker](http://docker.io) or using [source-to-image](https://github.com/openshift/source-to-image/). 8 | Also the whole pipeline from build to app deployment could be run on top of the [Openshift Origin](https://www.okd.io/) or [Red Hat's Openshift](https://www.openshift.com/). 9 | 10 | 11 | Usage 12 | --------------------- 13 | 14 | Simplest usage via s2i: 15 | 16 | s2i build ./src centos/go-toolset-7-centos7:latest test-app 17 | 18 | where ./src directory contains git repository with golang application that has complete dependencies. You can't use incremental build in this case. 19 | 20 | or 21 | 22 | s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' ./src centos/go-toolset-7-centos7:latest test-app 23 | 24 | where ./src directory contains git repository with golang application(in this case github.com/cpuguy83/go-md2man) that has complete or incomplete dependencies. You can use incremental build in this case. 25 | 26 | Both will build test-app application image. 27 | 28 | Environment variables 29 | --------------------- 30 | 31 | To set these environment variables, you can place them as a key value pair into a `.s2i/environment` 32 | file inside your source code repository or specified via s2i invocation. 33 | 34 | 35 | * **IMPORT_URL** 36 | 37 | Used to specify the golang application import URL (i.e. usually something like github.com/someorg/somerepo), that is build. Necessary for the incremental build to function. 38 | 39 | * **INSTALL_URL** 40 | 41 | Used to specify the golang application import URL of the main package (i.e. usually something like github.com/someorg/somerepo/subfolder). Necessary if the main package is not in the root folder of the repository. 42 | -------------------------------------------------------------------------------- /1.15/README.md: -------------------------------------------------------------------------------- 1 | Golang s2i container image 2 | =================== 3 | 4 | This repository contains the source for building various versions of 5 | the Go application as a reproducible s2i container image. 6 | Users can choose between RHEL, Fedora and CentOS based builder images. 7 | The resulting image can be run using [podman](https://github.com/containers/libpod), [Docker](http://docker.io) or using [source-to-image](https://github.com/openshift/source-to-image/). 8 | Also the whole pipeline from build to app deployment could be run on top of the [Openshift Origin](https://www.okd.io/) or [Red Hat's Openshift](https://www.openshift.com/). 9 | 10 | 11 | Usage 12 | --------------------- 13 | 14 | Simplest usage via s2i: 15 | 16 | s2i build ./src centos/go-toolset-7-centos7:latest test-app 17 | 18 | where ./src directory contains git repository with golang application that has complete dependencies. You can't use incremental build in this case. 19 | 20 | or 21 | 22 | s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' ./src centos/go-toolset-7-centos7:latest test-app 23 | 24 | where ./src directory contains git repository with golang application(in this case github.com/cpuguy83/go-md2man) that has complete or incomplete dependencies. You can use incremental build in this case. 25 | 26 | Both will build test-app application image. 27 | 28 | Environment variables 29 | --------------------- 30 | 31 | To set these environment variables, you can place them as a key value pair into a `.s2i/environment` 32 | file inside your source code repository or specified via s2i invocation. 33 | 34 | 35 | * **IMPORT_URL** 36 | 37 | Used to specify the golang application import URL (i.e. usually something like github.com/someorg/somerepo), that is build. Necessary for the incremental build to function. 38 | 39 | * **INSTALL_URL** 40 | 41 | Used to specify the golang application import URL of the main package (i.e. usually something like github.com/someorg/somerepo/subfolder). Necessary if the main package is not in the root folder of the repository. 42 | -------------------------------------------------------------------------------- /1.8/README.md: -------------------------------------------------------------------------------- 1 | Golang s2i container image 2 | =================== 3 | 4 | This repository contains the source for building various versions of 5 | the Go application as a reproducible s2i container image. 6 | Users can choose between RHEL, Fedora and CentOS based builder images. 7 | The resulting image can be run using [podman](https://github.com/containers/libpod), [Docker](http://docker.io) or using [source-to-image](https://github.com/openshift/source-to-image/). 8 | Also the whole pipeline from build to app deployment could be run on top of the [Openshift Origin](https://www.okd.io/) or [Red Hat's Openshift](https://www.openshift.com/). 9 | 10 | 11 | Usage 12 | --------------------- 13 | 14 | Simplest usage via s2i: 15 | 16 | s2i build ./src centos/go-toolset-7-centos7:latest test-app 17 | 18 | where ./src directory contains git repository with golang application that has complete dependencies. You can't use incremental build in this case. 19 | 20 | or 21 | 22 | s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' ./src centos/go-toolset-7-centos7:latest test-app 23 | 24 | where ./src directory contains git repository with golang application(in this case github.com/cpuguy83/go-md2man) that has complete or incomplete dependencies. You can use incremental build in this case. 25 | 26 | Both will build test-app application image. 27 | 28 | Environment variables 29 | --------------------- 30 | 31 | To set these environment variables, you can place them as a key value pair into a `.s2i/environment` 32 | file inside your source code repository or specified via s2i invocation. 33 | 34 | 35 | * **IMPORT_URL** 36 | 37 | Used to specify the golang application import URL (i.e. usually something like github.com/someorg/somerepo), that is build. Necessary for the incremental build to function. 38 | 39 | * **INSTALL_URL** 40 | 41 | Used to specify the golang application import URL of the main package (i.e. usually something like github.com/someorg/somerepo/subfolder). Necessary if the main package is not in the root folder of the repository. 42 | -------------------------------------------------------------------------------- /1.9/README.md: -------------------------------------------------------------------------------- 1 | Golang s2i container image 2 | =================== 3 | 4 | This repository contains the source for building various versions of 5 | the Go application as a reproducible s2i container image. 6 | Users can choose between RHEL, Fedora and CentOS based builder images. 7 | The resulting image can be run using [podman](https://github.com/containers/libpod), [Docker](http://docker.io) or using [source-to-image](https://github.com/openshift/source-to-image/). 8 | Also the whole pipeline from build to app deployment could be run on top of the [Openshift Origin](https://www.okd.io/) or [Red Hat's Openshift](https://www.openshift.com/). 9 | 10 | 11 | Usage 12 | --------------------- 13 | 14 | Simplest usage via s2i: 15 | 16 | s2i build ./src centos/go-toolset-7-centos7:latest test-app 17 | 18 | where ./src directory contains git repository with golang application that has complete dependencies. You can't use incremental build in this case. 19 | 20 | or 21 | 22 | s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' ./src centos/go-toolset-7-centos7:latest test-app 23 | 24 | where ./src directory contains git repository with golang application(in this case github.com/cpuguy83/go-md2man) that has complete or incomplete dependencies. You can use incremental build in this case. 25 | 26 | Both will build test-app application image. 27 | 28 | Environment variables 29 | --------------------- 30 | 31 | To set these environment variables, you can place them as a key value pair into a `.s2i/environment` 32 | file inside your source code repository or specified via s2i invocation. 33 | 34 | 35 | * **IMPORT_URL** 36 | 37 | Used to specify the golang application import URL (i.e. usually something like github.com/someorg/somerepo), that is build. Necessary for the incremental build to function. 38 | 39 | * **INSTALL_URL** 40 | 41 | Used to specify the golang application import URL of the main package (i.e. usually something like github.com/someorg/somerepo/subfolder). Necessary if the main package is not in the root folder of the repository. 42 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Backslash escapes.text: -------------------------------------------------------------------------------- 1 | These should all get escaped: 2 | 3 | Backslash: \\ 4 | 5 | Backtick: \` 6 | 7 | Asterisk: \* 8 | 9 | Underscore: \_ 10 | 11 | Left brace: \{ 12 | 13 | Right brace: \} 14 | 15 | Left bracket: \[ 16 | 17 | Right bracket: \] 18 | 19 | Left paren: \( 20 | 21 | Right paren: \) 22 | 23 | Greater-than: \> 24 | 25 | Hash: \# 26 | 27 | Period: \. 28 | 29 | Bang: \! 30 | 31 | Plus: \+ 32 | 33 | Minus: \- 34 | 35 | Tilde: \~ 36 | 37 | 38 | 39 | These should not, because they occur within a code block: 40 | 41 | Backslash: \\ 42 | 43 | Backtick: \` 44 | 45 | Asterisk: \* 46 | 47 | Underscore: \_ 48 | 49 | Left brace: \{ 50 | 51 | Right brace: \} 52 | 53 | Left bracket: \[ 54 | 55 | Right bracket: \] 56 | 57 | Left paren: \( 58 | 59 | Right paren: \) 60 | 61 | Greater-than: \> 62 | 63 | Hash: \# 64 | 65 | Period: \. 66 | 67 | Bang: \! 68 | 69 | Plus: \+ 70 | 71 | Minus: \- 72 | 73 | Tilde: \~ 74 | 75 | 76 | Nor should these, which occur in code spans: 77 | 78 | Backslash: `\\` 79 | 80 | Backtick: `` \` `` 81 | 82 | Asterisk: `\*` 83 | 84 | Underscore: `\_` 85 | 86 | Left brace: `\{` 87 | 88 | Right brace: `\}` 89 | 90 | Left bracket: `\[` 91 | 92 | Right bracket: `\]` 93 | 94 | Left paren: `\(` 95 | 96 | Right paren: `\)` 97 | 98 | Greater-than: `\>` 99 | 100 | Hash: `\#` 101 | 102 | Period: `\.` 103 | 104 | Bang: `\!` 105 | 106 | Plus: `\+` 107 | 108 | Minus: `\-` 109 | 110 | Tilde: `\~` 111 | 112 | 113 | These should get escaped, even though they're matching pairs for 114 | other Markdown constructs: 115 | 116 | \*asterisks\* 117 | 118 | \_underscores\_ 119 | 120 | \`backticks\` 121 | 122 | This is a code span with a literal backslash-backtick sequence: `` \` `` 123 | 124 | This is a tag with unescaped backticks bar. 125 | 126 | This is a tag with backslashes bar. 127 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/md2man/roff_test.go: -------------------------------------------------------------------------------- 1 | package md2man 2 | 3 | import ( 4 | "bytes" 5 | "testing" 6 | ) 7 | 8 | func TestBlockCode(t *testing.T) { 9 | r := &roffRenderer{} 10 | buf := bytes.NewBuffer(nil) 11 | 12 | code := []byte("$ echo hello world\nhello world\n") 13 | r.BlockCode(buf, code, "") 14 | 15 | expected := ` 16 | .PP 17 | .RS 18 | 19 | .nf 20 | $ echo hello world 21 | hello world 22 | 23 | .fi 24 | .RE 25 | ` 26 | result := buf.String() 27 | if expected != result { 28 | t.Fatalf("got incorrect output:\nexpected:\n%v\n\ngot:\n%v", expected, result) 29 | } 30 | } 31 | 32 | func TestTableCell(t *testing.T) { 33 | r := &roffRenderer{} 34 | buf := bytes.NewBuffer(nil) 35 | cell := []byte{} 36 | 37 | r.TableCell(buf, cell, 0) 38 | expected := " " 39 | if buf.String() != expected { 40 | t.Fatal("expected %q, got %q", expected, buf.String()) 41 | } 42 | 43 | r.TableCell(buf, cell, 0) 44 | expected += "\t " 45 | if buf.String() != expected { 46 | t.Fatalf("expected %q, got %q", expected, buf.String()) 47 | } 48 | 49 | cell = []byte("*") 50 | r.TableCell(buf, cell, 0) 51 | expected += "\t*" 52 | if buf.String() != expected { 53 | t.Fatalf("expected %q, got %q", expected, buf.String()) 54 | } 55 | 56 | cell = []byte("this is a test with some really long string") 57 | r.TableCell(buf, cell, 0) 58 | expected += "\tT{\nthis is a test with some really long string\nT}" 59 | if buf.String() != expected { 60 | t.Fatalf("expected %q, got %q", expected, buf.String()) 61 | } 62 | 63 | cell = []byte("some short string") 64 | r.TableCell(buf, cell, 0) 65 | expected += "\tsome short string" 66 | if buf.String() != expected { 67 | t.Fatalf("expected %q, got %q", expected, buf.String()) 68 | } 69 | 70 | cell = []byte{} 71 | r.TableCell(buf, cell, 0) 72 | expected += "\t " 73 | if buf.String() != expected { 74 | t.Fatalf("expected %q, got %q", expected, buf.String()) 75 | } 76 | 77 | cell = []byte("*") 78 | r.TableCell(buf, cell, 0) 79 | expected += "\t*" 80 | if buf.String() != expected { 81 | t.Fatalf("expected %q, got %q", expected, buf.String()) 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /test/import-without-vendor-app/app/md2man/roff_test.go: -------------------------------------------------------------------------------- 1 | package md2man 2 | 3 | import ( 4 | "bytes" 5 | "testing" 6 | ) 7 | 8 | func TestBlockCode(t *testing.T) { 9 | r := &roffRenderer{} 10 | buf := bytes.NewBuffer(nil) 11 | 12 | code := []byte("$ echo hello world\nhello world\n") 13 | r.BlockCode(buf, code, "") 14 | 15 | expected := ` 16 | .PP 17 | .RS 18 | 19 | .nf 20 | $ echo hello world 21 | hello world 22 | 23 | .fi 24 | .RE 25 | ` 26 | result := buf.String() 27 | if expected != result { 28 | t.Fatalf("got incorrect output:\nexpected:\n%v\n\ngot:\n%v", expected, result) 29 | } 30 | } 31 | 32 | func TestTableCell(t *testing.T) { 33 | r := &roffRenderer{} 34 | buf := bytes.NewBuffer(nil) 35 | cell := []byte{} 36 | 37 | r.TableCell(buf, cell, 0) 38 | expected := " " 39 | if buf.String() != expected { 40 | t.Fatal("expected %q, got %q", expected, buf.String()) 41 | } 42 | 43 | r.TableCell(buf, cell, 0) 44 | expected += "\t " 45 | if buf.String() != expected { 46 | t.Fatalf("expected %q, got %q", expected, buf.String()) 47 | } 48 | 49 | cell = []byte("*") 50 | r.TableCell(buf, cell, 0) 51 | expected += "\t*" 52 | if buf.String() != expected { 53 | t.Fatalf("expected %q, got %q", expected, buf.String()) 54 | } 55 | 56 | cell = []byte("this is a test with some really long string") 57 | r.TableCell(buf, cell, 0) 58 | expected += "\tT{\nthis is a test with some really long string\nT}" 59 | if buf.String() != expected { 60 | t.Fatalf("expected %q, got %q", expected, buf.String()) 61 | } 62 | 63 | cell = []byte("some short string") 64 | r.TableCell(buf, cell, 0) 65 | expected += "\tsome short string" 66 | if buf.String() != expected { 67 | t.Fatalf("expected %q, got %q", expected, buf.String()) 68 | } 69 | 70 | cell = []byte{} 71 | r.TableCell(buf, cell, 0) 72 | expected += "\t " 73 | if buf.String() != expected { 74 | t.Fatalf("expected %q, got %q", expected, buf.String()) 75 | } 76 | 77 | cell = []byte("*") 78 | r.TableCell(buf, cell, 0) 79 | expected += "\t*" 80 | if buf.String() != expected { 81 | t.Fatalf("expected %q, got %q", expected, buf.String()) 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Backslash escapes.html: -------------------------------------------------------------------------------- 1 |These should all get escaped:
2 | 3 |Backslash: \
4 | 5 |Backtick: `
6 | 7 |Asterisk: *
8 | 9 |Underscore: _
10 | 11 |Left brace: {
12 | 13 |Right brace: }
14 | 15 |Left bracket: [
16 | 17 |Right bracket: ]
18 | 19 |Left paren: (
20 | 21 |Right paren: )
22 | 23 |Greater-than: >
24 | 25 |Hash: #
26 | 27 |Period: .
28 | 29 |Bang: !
30 | 31 |Plus: +
32 | 33 |Minus: -
34 | 35 |Tilde: ~
36 | 37 |These should not, because they occur within a code block:
38 | 39 |Backslash: \\
40 |
41 | Backtick: \`
42 |
43 | Asterisk: \*
44 |
45 | Underscore: \_
46 |
47 | Left brace: \{
48 |
49 | Right brace: \}
50 |
51 | Left bracket: \[
52 |
53 | Right bracket: \]
54 |
55 | Left paren: \(
56 |
57 | Right paren: \)
58 |
59 | Greater-than: \>
60 |
61 | Hash: \#
62 |
63 | Period: \.
64 |
65 | Bang: \!
66 |
67 | Plus: \+
68 |
69 | Minus: \-
70 |
71 | Tilde: \~
72 |
73 |
74 | Nor should these, which occur in code spans:
75 | 76 |Backslash: \\
Backtick: \`
Asterisk: \*
Underscore: \_
Left brace: \{
Right brace: \}
Left bracket: \[
Right bracket: \]
Left paren: \(
Right paren: \)
Greater-than: \>
Hash: \#
Period: \.
Bang: \!
Plus: \+
Minus: \-
Tilde: \~
These should get escaped, even though they're matching pairs for 111 | other Markdown constructs:
112 | 113 |*asterisks*
114 | 115 |_underscores_
116 | 117 |`backticks`
118 | 119 |This is a code span with a literal backslash-backtick sequence: \`
This is a tag with unescaped backticks bar.
122 | 123 |This is a tag with backslashes bar.
124 | -------------------------------------------------------------------------------- /test/import-with-vendor-app/app/vendor/github.com/russross/blackfriday/testdata/Ordered and unordered lists.html: -------------------------------------------------------------------------------- 1 |Asterisks tight:
4 | 5 |Asterisks loose:
12 | 13 |asterisk 1
asterisk 2
asterisk 3
Pluses tight:
24 | 25 |Pluses loose:
32 | 33 |Plus 1
Plus 2
Plus 3
Minuses tight:
44 | 45 |Minuses loose:
52 | 53 |Minus 1
Minus 2
Minus 3
Tight:
64 | 65 |and:
72 | 73 |Loose using tabs:
80 | 81 |First
Second
Third
and using spaces:
90 | 91 |One
Two
Three
Multiple paragraphs:
100 | 101 |Item 1, graf one.
103 | 104 |Item 2. graf two. The quick brown fox jumped over the lazy dog's 105 | back.
Item 2.
Item 3.
Here's another:
127 | 128 |Same thing but with paragraphs:
141 | 142 |First
Second:
146 | 147 |Third
This was an error in Markdown 1.0.1:
157 | 158 |this
160 | 161 |that
Now is the time for all good men to come to 82 | the aid of their country. This is just a 83 | regular paragraph.
84 | 85 |The quick brown fox jumped over the lazy 86 | dog's back.
87 | 88 |91 |97 | 98 | 99 | 100 | ### Phrase Emphasis ### 101 | 102 | Markdown uses asterisks and underscores to indicate spans of emphasis. 103 | 104 | Markdown: 105 | 106 | Some of these words *are emphasized*. 107 | Some of these words _are emphasized also_. 108 | 109 | Use two asterisks for **strong emphasis**. 110 | Or, if you prefer, __use two underscores instead__. 111 | 112 | Output: 113 | 114 |This is a blockquote.
92 | 93 |This is the second paragraph in the blockquote.
94 | 95 |This is an H2 in a blockquote
96 |
Some of these words are emphasized. 115 | Some of these words are emphasized also.
116 | 117 |Use two asterisks for strong emphasis. 118 | Or, if you prefer, use two underscores instead.
119 | 120 | 121 | 122 | ## Lists ## 123 | 124 | Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`, 125 | `+`, and `-`) as list markers. These three markers are 126 | interchangable; this: 127 | 128 | * Candy. 129 | * Gum. 130 | * Booze. 131 | 132 | this: 133 | 134 | + Candy. 135 | + Gum. 136 | + Booze. 137 | 138 | and this: 139 | 140 | - Candy. 141 | - Gum. 142 | - Booze. 143 | 144 | all produce the same output: 145 | 146 |` tags for the 168 | list item text. You can create multi-paragraph list items by indenting 169 | the paragraphs by 4 spaces or 1 tab: 170 | 171 | * A list item. 172 | 173 | With multiple paragraphs. 174 | 175 | * Another item in the list. 176 | 177 | Output: 178 | 179 |
A list item.
181 |With multiple paragraphs.
Another item in the list.
This is an 201 | example link.
202 | 203 | Optionally, you may include a title attribute in the parentheses: 204 | 205 | This is an [example link](http://example.com/ "With a Title"). 206 | 207 | Output: 208 | 209 |This is an 210 | example link.
211 | 212 | Reference-style links allow you to refer to your links by names, which 213 | you define elsewhere in your document: 214 | 215 | I get 10 times more traffic from [Google][1] than from 216 | [Yahoo][2] or [MSN][3]. 217 | 218 | [1]: http://google.com/ "Google" 219 | [2]: http://search.yahoo.com/ "Yahoo Search" 220 | [3]: http://search.msn.com/ "MSN Search" 221 | 222 | Output: 223 | 224 |I get 10 times more traffic from Google than from Yahoo or MSN.
228 | 229 | The title attribute is optional. Link names may contain letters, 230 | numbers and spaces, but are *not* case sensitive: 231 | 232 | I start my morning with a cup of coffee and 233 | [The New York Times][NY Times]. 234 | 235 | [ny times]: http://www.nytimes.com/ 236 | 237 | Output: 238 | 239 |I start my morning with a cup of coffee and 240 | The New York Times.
241 | 242 | 243 | ### Images ### 244 | 245 | Image syntax is very much like link syntax. 246 | 247 | Inline (titles are optional): 248 | 249 |  250 | 251 | Reference-style: 252 | 253 | ![alt text][id] 254 | 255 | [id]: /path/to/img.jpg "Title" 256 | 257 | Both of the above examples produce the same output: 258 | 259 |
260 |
261 |
262 |
263 | ### Code ###
264 |
265 | In a regular paragraph, you can create code span by wrapping text in
266 | backtick quotes. Any ampersands (`&`) and angle brackets (`<` or
267 | `>`) will automatically be translated into HTML entities. This makes
268 | it easy to use Markdown to write about HTML example code:
269 |
270 | I strongly recommend against using any `