Cowsay.jl/src/cows/udder.cow.jl
Thomas A. Christensen II ea64f32b1d
Fix udder cowfile doctests
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2021-11-23 13:16:44 -06:00

41 lines
770 B
Julia

"""
function udder()
The cow from a file called cow-n-horn, artist unknown.
# Example
```jldoctest
julia> cowsay("Milking time!", cow=Cowsay.udder)
_______________
< Milking time! >
---------------
\\
\\ (__)
o o\\
('') \\---------
\\ \\
| |\\
||---( )_|| *
|| UU ||
== ==
```
"""
function udder(;eyes="oo", tongue=" ", thoughts="\\")
eye1 = first(eyes)
eye2 = last(eyes)
botheyes = string(eye1, " ", eye2)
the_cow =
"""
$thoughts
$thoughts (__)
$botheyes\\
('') \\---------
$tongue\\ \\
| |\\
||---( )_|| *
|| UU ||
== ==
"""
return the_cow
end