Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
steve
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Milan Bartky
steve
Commits
5d43f104
Commit
5d43f104
authored
Apr 03, 2019
by
Milan Bartky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added golang version
parent
e9f873b9
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1856 additions
and
1 deletion
+1856
-1
generator.php
generator.php
+1
-1
golang/chan-training.txt
golang/chan-training.txt
+1834
-0
golang/main.go
golang/main.go
+21
-0
No files found.
generator.php
View file @
5d43f104
...
...
@@ -130,7 +130,7 @@ NormalizeHelper::advancedCleanUp($generated);
$final
=
""
;
$length
=
4
;
if
(
isset
(
$_GET
[
"w"
])
&&
!
Helper
::
includes
(
$text
,
$_GET
[
"w"
]))
if
(
isset
(
$_GET
[
"w"
])
&&
Helper
::
includes
(
$text
,
$_GET
[
"w"
]))
{
/*
* For the amount of lines we want
...
...
golang/chan-training.txt
0 → 100644
View file @
5d43f104
This diff is collapsed.
Click to expand it.
golang/main.go
0 → 100644
View file @
5d43f104
package
main
import
(
"github.com/aonemd/margopher"
"fmt"
"io/ioutil"
)
func
main
()
{
//Load Training data from file
b
,
err
:=
ioutil
.
ReadFile
(
"chan-training.txt"
)
if
err
!=
nil
{
fmt
.
Print
(
err
)
}
//Bytes to string
text
:=
string
(
b
)
m
:=
margopher
.
New
()
fmt
.
Println
(
m
.
ReadText
(
text
))
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment