From 52285bab5d4f6d0db68dc3a75d5580ba90c057e4 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Mon, 11 May 2020 22:07:41 +0200 Subject: [PATCH] Use absolute imports --- go/tests/FIXME/func/test_addlinkednumbers.go | 2 +- go/tests/FIXME/func/test_atoibase.go | 2 +- go/tests/FIXME/func/test_btreedeletenode.go | 2 +- go/tests/FIXME/func/test_btreeinsertdata.go | 2 +- go/tests/FIXME/func/test_btreeisbinary.go | 2 +- go/tests/FIXME/func/test_btreelevelcount.go | 2 +- go/tests/FIXME/func/test_btreemax.go | 2 +- go/tests/FIXME/func/test_btreemin.go | 2 +- go/tests/FIXME/func/test_btreesearchitem.go | 2 +- go/tests/FIXME/func/test_btreetransplant.go | 2 +- go/tests/FIXME/func/test_changeorder.go | 2 +- go/tests/FIXME/func/test_convertbase.go | 2 +- go/tests/FIXME/func/test_listat.go | 2 +- go/tests/FIXME/func/test_listclear.go | 2 +- go/tests/FIXME/func/test_listfind.go | 2 +- go/tests/FIXME/func/test_listforeach.go | 2 +- go/tests/FIXME/func/test_listforeachif.go | 2 +- go/tests/FIXME/func/test_listlast.go | 2 +- go/tests/FIXME/func/test_listmerge.go | 2 +- go/tests/FIXME/func/test_listpushback.go | 2 +- go/tests/FIXME/func/test_listpushfront.go | 2 +- go/tests/FIXME/func/test_listremoveif.go | 2 +- go/tests/FIXME/func/test_listreverse.go | 2 +- go/tests/FIXME/func/test_listsize.go | 2 +- go/tests/FIXME/func/test_listsort.go | 2 +- go/tests/FIXME/func/test_printnbrbase.go | 2 +- go/tests/FIXME/func/test_sortedlistmerge.go | 2 +- go/tests/FIXME/func/test_sortlistinsert.go | 2 +- go/tests/FIXME/func/test_sortll.go | 2 +- go/tests/FIXME/prog/test_pilot.go | 2 +- go/tests/abort/main.go | 3 +-- go/tests/activebits/main.go | 5 ++++- go/tests/addprimesum/main.go | 2 +- go/tests/advancedsortwordarr/main.go | 1 + go/tests/alphacount/main.go | 1 + go/tests/alphamirror/main.go | 4 +++- go/tests/any/main.go | 1 + go/tests/appendrange/main.go | 5 ++++- go/tests/atoi/main.go | 1 + go/tests/balancedstring/main.go | 4 +++- go/tests/basicatoi/main.go | 1 + go/tests/basicatoi2/main.go | 1 + go/tests/basicjoin/main.go | 5 ++++- go/tests/boolean/main.go | 2 +- go/tests/brackets/main.go | 4 +++- go/tests/brainfuck/main.go | 2 +- go/tests/capitalize/main.go | 1 + go/tests/cat/main.go | 2 +- go/tests/chunk/main.go | 1 + go/tests/cleanstr/main.go | 4 +++- go/tests/collatzcountdown/main.go | 5 ++++- go/tests/comcheck/main.go | 2 +- go/tests/compact/main.go | 1 + go/tests/compare/main.go | 1 + go/tests/concat/main.go | 5 ++++- go/tests/concatparams/main.go | 1 + go/tests/costumeprofit/main.go | 2 +- go/tests/countdown/main.go | 4 +++- go/tests/countif/main.go | 1 + go/tests/displaya/main.go | 2 +- go/tests/displayalpham/main.go | 4 +++- go/tests/displayalrevm/main.go | 4 +++- go/tests/displayfile/main.go | 2 +- go/tests/displayfirstparam/main.go | 2 +- go/tests/displaylastparam/main.go | 2 +- go/tests/displayz/main.go | 2 +- go/tests/divmod/main.go | 5 ++++- go/tests/doop/main.go | 5 ++--- go/tests/doppelganger/main.go | 1 + go/tests/eightqueens/main.go | 1 + go/tests/enigma/main.go | 5 ++++- go/tests/expandstr/main.go | 4 +++- go/tests/fib/main.go | 5 ++++- go/tests/fibonacci/main.go | 5 ++++- go/tests/findnextprime/main.go | 1 + go/tests/findprevprime/main.go | 1 + go/tests/firstrune/main.go | 5 ++++- go/tests/firstword/main.go | 4 +++- go/tests/fixthemain/main.go | 4 +++- go/tests/flags/main.go | 4 +++- go/tests/foldint/main.go | 1 + go/tests/foreach/main.go | 1 + go/tests/fprime/main.go | 2 +- go/tests/game23/main.go | 5 ++++- go/tests/gcd/main.go | 2 +- go/tests/grouping/main.go | 4 +++- go/tests/halfcontest/main.go | 5 ++++- go/tests/hello/main.go | 4 +++- go/tests/hiddenp/main.go | 4 +++- go/tests/index/main.go | 1 + go/tests/inter/main.go | 2 +- go/tests/interestingnumber/main.go | 5 ++++- go/tests/isalpha/main.go | 1 + go/tests/isanagram/main.go | 5 ++++- go/tests/islower/main.go | 1 + go/tests/isnegative/main.go | 1 + go/tests/isnumeric/main.go | 1 + go/tests/ispowerof2/main.go | 2 +- go/tests/isprime/main.go | 1 + go/tests/isprintable/main.go | 1 + go/tests/issorted/main.go | 1 + go/tests/isupper/main.go | 1 + go/tests/iterativefactorial/main.go | 1 + go/tests/iterativepower/main.go | 1 + go/tests/itoa/main.go | 1 + go/tests/itoabase/main.go | 1 + go/tests/join/main.go | 1 + go/tests/lastrune/main.go | 5 ++++- go/tests/lastword/main.go | 4 +++- go/tests/lcm/main.go | 5 ++++- go/tests/makerange/main.go | 5 ++++- go/tests/map/main.go | 1 + go/tests/max/main.go | 1 + go/tests/nauuo/main.go | 5 ++++- go/tests/nbrconvertalpha/main.go | 2 +- go/tests/nenokku/main.go | 4 +++- go/tests/nrune/main.go | 1 + go/tests/onlya/main.go | 4 +++- go/tests/onlyz/main.go | 4 +++- go/tests/options/main.go | 2 +- go/tests/paramcount/main.go | 2 +- go/tests/piglatin/main.go | 4 +++- go/tests/point/main.go | 4 +++- go/tests/pointone/main.go | 5 ++++- go/tests/printalphabet/main.go | 4 +++- go/tests/printbits/main.go | 2 +- go/tests/printchessboard/main.go | 2 +- go/tests/printcomb/main.go | 1 + go/tests/printcomb2/main.go | 1 + go/tests/printcombn/main.go | 1 + go/tests/printdigits/main.go | 4 +++- go/tests/printhex/main.go | 2 +- go/tests/printmemory/main.go | 1 + go/tests/printnbr/main.go | 1 + go/tests/printnbrinorder/main.go | 1 + go/tests/printparams/main.go | 2 +- go/tests/printprogramname/main.go | 2 +- go/tests/printrevcomb/main.go | 4 +++- go/tests/printreversealphabet/main.go | 4 +++- go/tests/printstr/main.go | 1 + go/tests/printwordstables/main.go | 1 + go/tests/priorprime/main.go | 5 ++++- go/tests/raid1a/main.go | 1 + go/tests/raid1b/main.go | 1 + go/tests/raid1c/main.go | 1 + go/tests/raid1d/main.go | 1 + go/tests/raid1e/main.go | 1 + go/tests/raid2/main.go | 4 +++- go/tests/raid3/main.go | 2 +- go/tests/range/main.go | 2 +- go/tests/reachablenumber/main.go | 5 ++++- go/tests/rectangle/main.go | 4 +++- go/tests/recursivefactorial/main.go | 1 + go/tests/recursivepower/main.go | 1 + go/tests/reduceint/main.go | 1 + go/tests/repeatalpha/main.go | 4 +++- go/tests/reversebits/main.go | 2 +- go/tests/reverserange/main.go | 2 +- go/tests/reversestrcap/main.go | 4 +++- go/tests/revivethreenums/main.go | 5 ++++- go/tests/revparams/main.go | 4 +++- go/tests/revwstr/main.go | 4 +++- go/tests/robottoorigin/main.go | 4 +++- go/tests/romannumbers/main.go | 2 +- go/tests/rostring/main.go | 4 +++- go/tests/rot13/main.go | 4 +++- go/tests/rot14/main.go | 5 ++++- go/tests/rotatevowels/main.go | 2 +- go/tests/rpncalc/main.go | 4 +++- go/tests/searchreplace/main.go | 4 +++- go/tests/slice/main.go | 5 ++++- go/tests/sortintegertable/main.go | 1 + go/tests/sortparams/main.go | 4 +++- go/tests/sortwordarr/main.go | 1 + go/tests/split/main.go | 1 + go/tests/splitwhitespaces/main.go | 1 + go/tests/sqrt/main.go | 1 + go/tests/strlen/main.go | 5 ++++- go/tests/strrev/main.go | 5 ++++- go/tests/swap/main.go | 5 ++++- go/tests/swapbits/main.go | 1 + go/tests/sweetproblem/main.go | 5 ++++- go/tests/switchcase/main.go | 4 +++- go/tests/tabmult/main.go | 2 +- go/tests/tetrisoptimizer/main.go | 2 +- go/tests/tolower/main.go | 1 + go/tests/toupper/main.go | 1 + go/tests/trimatoi/main.go | 5 ++++- go/tests/twosum/main.go | 1 + go/tests/ultimatedivmod/main.go | 5 ++++- go/tests/ultimatepointone/main.go | 5 ++++- go/tests/union/main.go | 2 +- go/tests/uniqueoccurences/main.go | 4 +++- go/tests/unmatch/main.go | 5 ++++- go/tests/volumechanger/main.go | 5 ++++- go/tests/wdmatch/main.go | 2 +- 196 files changed, 372 insertions(+), 139 deletions(-) diff --git a/go/tests/FIXME/func/test_addlinkednumbers.go b/go/tests/FIXME/func/test_addlinkednumbers.go index 607ebb8a..ef45c1af 100644 --- a/go/tests/FIXME/func/test_addlinkednumbers.go +++ b/go/tests/FIXME/func/test_addlinkednumbers.go @@ -3,8 +3,8 @@ package main import ( "strconv" - "../lib" "./correct" + "github.com/01-edu/public/go/lib" ) type stuNode = NodeAddL diff --git a/go/tests/FIXME/func/test_atoibase.go b/go/tests/FIXME/func/test_atoibase.go index b96cc4a1..73cdc744 100644 --- a/go/tests/FIXME/func/test_atoibase.go +++ b/go/tests/FIXME/func/test_atoibase.go @@ -1,10 +1,10 @@ package main import ( - "../lib" "./base" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) // this is the function that creates the TESTS diff --git a/go/tests/FIXME/func/test_btreedeletenode.go b/go/tests/FIXME/func/test_btreedeletenode.go index 17615624..118b3846 100644 --- a/go/tests/FIXME/func/test_btreedeletenode.go +++ b/go/tests/FIXME/func/test_btreedeletenode.go @@ -1,9 +1,9 @@ package main import ( - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) func parentListDelete(root *student.TreeNode) string { diff --git a/go/tests/FIXME/func/test_btreeinsertdata.go b/go/tests/FIXME/func/test_btreeinsertdata.go index fa6c233e..dd0efe83 100644 --- a/go/tests/FIXME/func/test_btreeinsertdata.go +++ b/go/tests/FIXME/func/test_btreeinsertdata.go @@ -1,9 +1,9 @@ package main import ( - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) func parentListInsert(root *student.TreeNode) string { diff --git a/go/tests/FIXME/func/test_btreeisbinary.go b/go/tests/FIXME/func/test_btreeisbinary.go index ad335c70..6eb7da7b 100644 --- a/go/tests/FIXME/func/test_btreeisbinary.go +++ b/go/tests/FIXME/func/test_btreeisbinary.go @@ -3,9 +3,9 @@ package main import ( "reflect" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) func BTreeMinStu(root *student.TreeNode) *student.TreeNode { diff --git a/go/tests/FIXME/func/test_btreelevelcount.go b/go/tests/FIXME/func/test_btreelevelcount.go index df1a514f..255d1928 100644 --- a/go/tests/FIXME/func/test_btreelevelcount.go +++ b/go/tests/FIXME/func/test_btreelevelcount.go @@ -3,9 +3,9 @@ package main import ( "reflect" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) func errorMessage_level(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode) { diff --git a/go/tests/FIXME/func/test_btreemax.go b/go/tests/FIXME/func/test_btreemax.go index efb35e1d..dbe9bbb5 100644 --- a/go/tests/FIXME/func/test_btreemax.go +++ b/go/tests/FIXME/func/test_btreemax.go @@ -3,9 +3,9 @@ package main import ( "reflect" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) func errorMessage_max(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode) { diff --git a/go/tests/FIXME/func/test_btreemin.go b/go/tests/FIXME/func/test_btreemin.go index 46250563..ecfacfdc 100644 --- a/go/tests/FIXME/func/test_btreemin.go +++ b/go/tests/FIXME/func/test_btreemin.go @@ -3,9 +3,9 @@ package main import ( "reflect" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) func errorMessage_min(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode) { diff --git a/go/tests/FIXME/func/test_btreesearchitem.go b/go/tests/FIXME/func/test_btreesearchitem.go index 55a251db..f364e97a 100644 --- a/go/tests/FIXME/func/test_btreesearchitem.go +++ b/go/tests/FIXME/func/test_btreesearchitem.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) func errorMessage_search(fn interface{}, root, a *correct.TreeNode, b *student.TreeNode, diff --git a/go/tests/FIXME/func/test_btreetransplant.go b/go/tests/FIXME/func/test_btreetransplant.go index bd4b0a9d..d1166086 100644 --- a/go/tests/FIXME/func/test_btreetransplant.go +++ b/go/tests/FIXME/func/test_btreetransplant.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) func parentListTransp(root *student.TreeNode) string { diff --git a/go/tests/FIXME/func/test_changeorder.go b/go/tests/FIXME/func/test_changeorder.go index 49c77bae..786dfe3d 100644 --- a/go/tests/FIXME/func/test_changeorder.go +++ b/go/tests/FIXME/func/test_changeorder.go @@ -3,8 +3,8 @@ package main import ( "strconv" - "../lib" "./correct" + "github.com/01-edu/public/go/lib" ) type stuNode = NodeAddL diff --git a/go/tests/FIXME/func/test_convertbase.go b/go/tests/FIXME/func/test_convertbase.go index 1392746d..86465f70 100644 --- a/go/tests/FIXME/func/test_convertbase.go +++ b/go/tests/FIXME/func/test_convertbase.go @@ -1,10 +1,10 @@ package main import ( - "../lib" "./base" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/FIXME/func/test_listat.go b/go/tests/FIXME/func/test_listat.go index 2c2528ef..12904b04 100644 --- a/go/tests/FIXME/func/test_listat.go +++ b/go/tests/FIXME/func/test_listat.go @@ -1,9 +1,9 @@ package main import ( - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type Node5 = student.NodeL diff --git a/go/tests/FIXME/func/test_listclear.go b/go/tests/FIXME/func/test_listclear.go index 258bfac6..788bb7b2 100644 --- a/go/tests/FIXME/func/test_listclear.go +++ b/go/tests/FIXME/func/test_listclear.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type Node4 = student.NodeL diff --git a/go/tests/FIXME/func/test_listfind.go b/go/tests/FIXME/func/test_listfind.go index f7f4f9e0..03d569ff 100644 --- a/go/tests/FIXME/func/test_listfind.go +++ b/go/tests/FIXME/func/test_listfind.go @@ -1,9 +1,9 @@ package main import ( - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type Node9 = student.NodeL diff --git a/go/tests/FIXME/func/test_listforeach.go b/go/tests/FIXME/func/test_listforeach.go index 15f7f5f6..723c63e7 100644 --- a/go/tests/FIXME/func/test_listforeach.go +++ b/go/tests/FIXME/func/test_listforeach.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type Node7 = student.NodeL diff --git a/go/tests/FIXME/func/test_listforeachif.go b/go/tests/FIXME/func/test_listforeachif.go index 615aa209..94240193 100644 --- a/go/tests/FIXME/func/test_listforeachif.go +++ b/go/tests/FIXME/func/test_listforeachif.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type Node8 = student.NodeL diff --git a/go/tests/FIXME/func/test_listlast.go b/go/tests/FIXME/func/test_listlast.go index 71200f82..02d77e74 100644 --- a/go/tests/FIXME/func/test_listlast.go +++ b/go/tests/FIXME/func/test_listlast.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type Node3 = student.NodeL diff --git a/go/tests/FIXME/func/test_listmerge.go b/go/tests/FIXME/func/test_listmerge.go index 7266c9d3..9616144d 100644 --- a/go/tests/FIXME/func/test_listmerge.go +++ b/go/tests/FIXME/func/test_listmerge.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type Node11 = student.NodeL diff --git a/go/tests/FIXME/func/test_listpushback.go b/go/tests/FIXME/func/test_listpushback.go index c7e53a44..9f6d13c8 100644 --- a/go/tests/FIXME/func/test_listpushback.go +++ b/go/tests/FIXME/func/test_listpushback.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type ListS = correct.List diff --git a/go/tests/FIXME/func/test_listpushfront.go b/go/tests/FIXME/func/test_listpushfront.go index c6add4c7..e2f4eda1 100644 --- a/go/tests/FIXME/func/test_listpushfront.go +++ b/go/tests/FIXME/func/test_listpushfront.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type ListSa = correct.List diff --git a/go/tests/FIXME/func/test_listremoveif.go b/go/tests/FIXME/func/test_listremoveif.go index a18a0985..72dc86d6 100644 --- a/go/tests/FIXME/func/test_listremoveif.go +++ b/go/tests/FIXME/func/test_listremoveif.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type Node10 = student.NodeL diff --git a/go/tests/FIXME/func/test_listreverse.go b/go/tests/FIXME/func/test_listreverse.go index 777d2513..77f2e5d3 100644 --- a/go/tests/FIXME/func/test_listreverse.go +++ b/go/tests/FIXME/func/test_listreverse.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type Node6 = student.NodeL diff --git a/go/tests/FIXME/func/test_listsize.go b/go/tests/FIXME/func/test_listsize.go index 61a9b83d..4cd90d75 100644 --- a/go/tests/FIXME/func/test_listsize.go +++ b/go/tests/FIXME/func/test_listsize.go @@ -1,9 +1,9 @@ package main import ( - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type Node2 = student.NodeL diff --git a/go/tests/FIXME/func/test_listsort.go b/go/tests/FIXME/func/test_listsort.go index 20ffdc93..68f1b5f0 100644 --- a/go/tests/FIXME/func/test_listsort.go +++ b/go/tests/FIXME/func/test_listsort.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type NodeI12 = student.NodeI diff --git a/go/tests/FIXME/func/test_printnbrbase.go b/go/tests/FIXME/func/test_printnbrbase.go index d9204576..612ca5b7 100644 --- a/go/tests/FIXME/func/test_printnbrbase.go +++ b/go/tests/FIXME/func/test_printnbrbase.go @@ -1,10 +1,10 @@ package main import ( - "../lib" "./base" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/FIXME/func/test_sortedlistmerge.go b/go/tests/FIXME/func/test_sortedlistmerge.go index 23837363..0252252e 100644 --- a/go/tests/FIXME/func/test_sortedlistmerge.go +++ b/go/tests/FIXME/func/test_sortedlistmerge.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type NodeI13 = student.NodeI diff --git a/go/tests/FIXME/func/test_sortlistinsert.go b/go/tests/FIXME/func/test_sortlistinsert.go index e1700a04..d1609769 100644 --- a/go/tests/FIXME/func/test_sortlistinsert.go +++ b/go/tests/FIXME/func/test_sortlistinsert.go @@ -3,9 +3,9 @@ package main import ( "strconv" - "../lib" "./correct" "./student" + "github.com/01-edu/public/go/lib" ) type NodeI14 = student.NodeI diff --git a/go/tests/FIXME/func/test_sortll.go b/go/tests/FIXME/func/test_sortll.go index c59cb4fc..5cf9394a 100644 --- a/go/tests/FIXME/func/test_sortll.go +++ b/go/tests/FIXME/func/test_sortll.go @@ -1,8 +1,8 @@ package main import ( - "../lib" "./correct" + "github.com/01-edu/public/go/lib" ) type stuNode = NodeAddL diff --git a/go/tests/FIXME/prog/test_pilot.go b/go/tests/FIXME/prog/test_pilot.go index 1ee4884f..f589f737 100644 --- a/go/tests/FIXME/prog/test_pilot.go +++ b/go/tests/FIXME/prog/test_pilot.go @@ -1,6 +1,6 @@ package main -import "../lib" +import "github.com/01-edu/public/go/lib" func main() { lib.ChallengeMain("pilot") diff --git a/go/tests/abort/main.go b/go/tests/abort/main.go index 198d4cec..d181f055 100644 --- a/go/tests/abort/main.go +++ b/go/tests/abort/main.go @@ -3,9 +3,8 @@ package main import ( "sort" - "github.com/01-edu/public/tests/go/lib" - "./student" + "github.com/01-edu/public/go/lib" ) // Receives 5 ints and returns the number in the middle diff --git a/go/tests/activebits/main.go b/go/tests/activebits/main.go index 02fa1725..0a6b2d13 100644 --- a/go/tests/activebits/main.go +++ b/go/tests/activebits/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) // Function that return the number of active bits in the number passed as the argument func activeBits(n int) (total int) { diff --git a/go/tests/addprimesum/main.go b/go/tests/addprimesum/main.go index 8f1b7b23..0ab7920e 100644 --- a/go/tests/addprimesum/main.go +++ b/go/tests/addprimesum/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) func isAPrime(nb int) bool { diff --git a/go/tests/advancedsortwordarr/main.go b/go/tests/advancedsortwordarr/main.go index 41e05f13..652d4755 100644 --- a/go/tests/advancedsortwordarr/main.go +++ b/go/tests/advancedsortwordarr/main.go @@ -6,6 +6,7 @@ import ( "strings" "./student" + "github.com/01-edu/public/go/lib" ) func advancedSortWordArr(a []string, f func(a, b string) int) { diff --git a/go/tests/alphacount/main.go b/go/tests/alphacount/main.go index 30e21732..e7d77353 100644 --- a/go/tests/alphacount/main.go +++ b/go/tests/alphacount/main.go @@ -4,6 +4,7 @@ import ( "unicode" "./student" + "github.com/01-edu/public/go/lib" ) func alphaCount(s string) (i int) { diff --git a/go/tests/alphamirror/main.go b/go/tests/alphamirror/main.go index 008943b4..79ff17b8 100644 --- a/go/tests/alphamirror/main.go +++ b/go/tests/alphamirror/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { args := [][]string{ diff --git a/go/tests/any/main.go b/go/tests/any/main.go index f61cc05a..fa08b724 100644 --- a/go/tests/any/main.go +++ b/go/tests/any/main.go @@ -3,6 +3,7 @@ package main import ( "../common" "./student" + "github.com/01-edu/public/go/lib" ) func any(f func(string) bool, arr []string) bool { diff --git a/go/tests/appendrange/main.go b/go/tests/appendrange/main.go index 3ba1b06b..10a631fb 100644 --- a/go/tests/appendrange/main.go +++ b/go/tests/appendrange/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func appendRange(min, max int) []int { size := max - min diff --git a/go/tests/atoi/main.go b/go/tests/atoi/main.go index 7880b39a..6cac8e08 100644 --- a/go/tests/atoi/main.go +++ b/go/tests/atoi/main.go @@ -4,6 +4,7 @@ import ( "strconv" "./student" + "github.com/01-edu/public/go/lib" ) func atoi(s string) int { diff --git a/go/tests/balancedstring/main.go b/go/tests/balancedstring/main.go index a2526765..1834c154 100644 --- a/go/tests/balancedstring/main.go +++ b/go/tests/balancedstring/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { table := []string{ diff --git a/go/tests/basicatoi/main.go b/go/tests/basicatoi/main.go index 52834dee..8a7feefb 100644 --- a/go/tests/basicatoi/main.go +++ b/go/tests/basicatoi/main.go @@ -4,6 +4,7 @@ import ( "strconv" "./student" + "github.com/01-edu/public/go/lib" ) func basicAtoi(s string) int { diff --git a/go/tests/basicatoi2/main.go b/go/tests/basicatoi2/main.go index 22349181..ee75aeea 100644 --- a/go/tests/basicatoi2/main.go +++ b/go/tests/basicatoi2/main.go @@ -4,6 +4,7 @@ import ( "strconv" "./student" + "github.com/01-edu/public/go/lib" ) func basicAtoi2(s string) int { diff --git a/go/tests/basicjoin/main.go b/go/tests/basicjoin/main.go index 6d01a1f8..49386d90 100644 --- a/go/tests/basicjoin/main.go +++ b/go/tests/basicjoin/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func basicJoin(a []string) (b string) { for _, s := range a { diff --git a/go/tests/boolean/main.go b/go/tests/boolean/main.go index 11ec372c..adb80f73 100644 --- a/go/tests/boolean/main.go +++ b/go/tests/boolean/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/brackets/main.go b/go/tests/brackets/main.go index bf880ae8..5c6d887f 100644 --- a/go/tests/brackets/main.go +++ b/go/tests/brackets/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { oneArgs := []string{ diff --git a/go/tests/brainfuck/main.go b/go/tests/brainfuck/main.go index 0a7ecc86..682caa55 100644 --- a/go/tests/brainfuck/main.go +++ b/go/tests/brainfuck/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/capitalize/main.go b/go/tests/capitalize/main.go index 614fe1f5..c57c6b2a 100644 --- a/go/tests/capitalize/main.go +++ b/go/tests/capitalize/main.go @@ -5,6 +5,7 @@ import ( "unicode" "./student" + "github.com/01-edu/public/go/lib" ) func capitalize(s string) string { diff --git a/go/tests/cat/main.go b/go/tests/cat/main.go index e0c354cc..a99f6efc 100644 --- a/go/tests/cat/main.go +++ b/go/tests/cat/main.go @@ -6,7 +6,7 @@ import ( "os/exec" "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/chunk/main.go b/go/tests/chunk/main.go index 432848d9..424dbd94 100644 --- a/go/tests/chunk/main.go +++ b/go/tests/chunk/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func chunk(a []int, ch int) { diff --git a/go/tests/cleanstr/main.go b/go/tests/cleanstr/main.go index 63162029..e8d3cba9 100644 --- a/go/tests/cleanstr/main.go +++ b/go/tests/cleanstr/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { args := []string{ diff --git a/go/tests/collatzcountdown/main.go b/go/tests/collatzcountdown/main.go index 37b49624..6abc2e40 100644 --- a/go/tests/collatzcountdown/main.go +++ b/go/tests/collatzcountdown/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func collatzCountdown(start int) int { if start <= 0 { diff --git a/go/tests/comcheck/main.go b/go/tests/comcheck/main.go index d3fea8e1..322d12b4 100644 --- a/go/tests/comcheck/main.go +++ b/go/tests/comcheck/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/compact/main.go b/go/tests/compact/main.go index befbb5b5..856944bc 100644 --- a/go/tests/compact/main.go +++ b/go/tests/compact/main.go @@ -4,6 +4,7 @@ import ( "reflect" "./student" + "github.com/01-edu/public/go/lib" ) func compact(slice *[]string) int { diff --git a/go/tests/compare/main.go b/go/tests/compare/main.go index 6e914a35..99bd2b34 100644 --- a/go/tests/compare/main.go +++ b/go/tests/compare/main.go @@ -4,6 +4,7 @@ import ( "strings" "./student" + "github.com/01-edu/public/go/lib" ) func compare(a, b string) int { diff --git a/go/tests/concat/main.go b/go/tests/concat/main.go index 3154b1f6..7b224265 100644 --- a/go/tests/concat/main.go +++ b/go/tests/concat/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func concat(a, b string) string { return a + b diff --git a/go/tests/concatparams/main.go b/go/tests/concatparams/main.go index 79ec69e1..84186975 100644 --- a/go/tests/concatparams/main.go +++ b/go/tests/concatparams/main.go @@ -4,6 +4,7 @@ import ( "strings" "./student" + "github.com/01-edu/public/go/lib" ) func concatParams(args []string) string { diff --git a/go/tests/costumeprofit/main.go b/go/tests/costumeprofit/main.go index a192b6d0..6960a239 100644 --- a/go/tests/costumeprofit/main.go +++ b/go/tests/costumeprofit/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) type node struct { diff --git a/go/tests/countdown/main.go b/go/tests/countdown/main.go index 2f0862b5..8b74f0c6 100644 --- a/go/tests/countdown/main.go +++ b/go/tests/countdown/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("countdown") diff --git a/go/tests/countif/main.go b/go/tests/countif/main.go index f1e6f453..f3642f66 100644 --- a/go/tests/countif/main.go +++ b/go/tests/countif/main.go @@ -3,6 +3,7 @@ package main import ( "../common" "./student" + "github.com/01-edu/public/go/lib" ) func countIf(f func(string) bool, arr []string) int { diff --git a/go/tests/displaya/main.go b/go/tests/displaya/main.go index 463022ea..7eb3e025 100644 --- a/go/tests/displaya/main.go +++ b/go/tests/displaya/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/displayalpham/main.go b/go/tests/displayalpham/main.go index a1573c33..61b6f08d 100644 --- a/go/tests/displayalpham/main.go +++ b/go/tests/displayalpham/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("displayalpham") diff --git a/go/tests/displayalrevm/main.go b/go/tests/displayalrevm/main.go index 157fa63c..d8753c4c 100644 --- a/go/tests/displayalrevm/main.go +++ b/go/tests/displayalrevm/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("displayalrevm") diff --git a/go/tests/displayfile/main.go b/go/tests/displayfile/main.go index 868de328..2c7cc156 100644 --- a/go/tests/displayfile/main.go +++ b/go/tests/displayfile/main.go @@ -4,7 +4,7 @@ import ( "os" "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/displayfirstparam/main.go b/go/tests/displayfirstparam/main.go index 1f59c521..f3a2c59d 100644 --- a/go/tests/displayfirstparam/main.go +++ b/go/tests/displayfirstparam/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/displaylastparam/main.go b/go/tests/displaylastparam/main.go index 70ac2d57..93c9e6c4 100644 --- a/go/tests/displaylastparam/main.go +++ b/go/tests/displaylastparam/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/displayz/main.go b/go/tests/displayz/main.go index 46d2a1db..b09a8684 100644 --- a/go/tests/displayz/main.go +++ b/go/tests/displayz/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/divmod/main.go b/go/tests/divmod/main.go index fba0e85d..5535c7f5 100644 --- a/go/tests/divmod/main.go +++ b/go/tests/divmod/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func DivMod(a, b int, div, mod *int) { *div = a / b diff --git a/go/tests/doop/main.go b/go/tests/doop/main.go index 29b71e5e..f76c05d6 100644 --- a/go/tests/doop/main.go +++ b/go/tests/doop/main.go @@ -1,11 +1,10 @@ package main import ( - "strings" - "strconv" + "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/doppelganger/main.go b/go/tests/doppelganger/main.go index 162a4078..e6c89b96 100644 --- a/go/tests/doppelganger/main.go +++ b/go/tests/doppelganger/main.go @@ -4,6 +4,7 @@ import ( "strings" "./student" + "github.com/01-edu/public/go/lib" ) func doppelGanger(s, substr string) int { diff --git a/go/tests/eightqueens/main.go b/go/tests/eightqueens/main.go index 00126b88..fabc544f 100644 --- a/go/tests/eightqueens/main.go +++ b/go/tests/eightqueens/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) const size = 8 diff --git a/go/tests/enigma/main.go b/go/tests/enigma/main.go index 46520b2e..c6246964 100644 --- a/go/tests/enigma/main.go +++ b/go/tests/enigma/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) // this function will put a in c; c in d; d in b and b in a func Enigma(a ***int, b *int, c *******int, d ****int) { diff --git a/go/tests/expandstr/main.go b/go/tests/expandstr/main.go index 4e8b01c8..cf9b2600 100644 --- a/go/tests/expandstr/main.go +++ b/go/tests/expandstr/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { args := [][]string{ diff --git a/go/tests/fib/main.go b/go/tests/fib/main.go index 09ff2547..f7bd0a9f 100644 --- a/go/tests/fib/main.go +++ b/go/tests/fib/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func fib(n int) int { if n <= 0 { diff --git a/go/tests/fibonacci/main.go b/go/tests/fibonacci/main.go index f14dc79f..b92c0093 100644 --- a/go/tests/fibonacci/main.go +++ b/go/tests/fibonacci/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func fibonacci(value int) int { if value < 0 { diff --git a/go/tests/findnextprime/main.go b/go/tests/findnextprime/main.go index b8a2a37f..31bcf72d 100644 --- a/go/tests/findnextprime/main.go +++ b/go/tests/findnextprime/main.go @@ -3,6 +3,7 @@ package main import ( "../common" "./student" + "github.com/01-edu/public/go/lib" ) func findNextPrime(nb int) int { diff --git a/go/tests/findprevprime/main.go b/go/tests/findprevprime/main.go index 1d3fccbd..58404d79 100644 --- a/go/tests/findprevprime/main.go +++ b/go/tests/findprevprime/main.go @@ -3,6 +3,7 @@ package main import ( "../common" "./student" + "github.com/01-edu/public/go/lib" ) func findPrevPrime(nb int) int { diff --git a/go/tests/firstrune/main.go b/go/tests/firstrune/main.go index 9d552496..39ca9433 100644 --- a/go/tests/firstrune/main.go +++ b/go/tests/firstrune/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func firstRune(s string) rune { runes := []rune(s) diff --git a/go/tests/firstword/main.go b/go/tests/firstword/main.go index 5487e79f..3f7191e9 100644 --- a/go/tests/firstword/main.go +++ b/go/tests/firstword/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { table := append(lib.MultRandWords(), diff --git a/go/tests/fixthemain/main.go b/go/tests/fixthemain/main.go index 27b6bb3d..e9caa929 100644 --- a/go/tests/fixthemain/main.go +++ b/go/tests/fixthemain/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("fixthemain") diff --git a/go/tests/flags/main.go b/go/tests/flags/main.go index ae11be37..654a8b38 100644 --- a/go/tests/flags/main.go +++ b/go/tests/flags/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) type node struct { flags []string diff --git a/go/tests/foldint/main.go b/go/tests/foldint/main.go index 3061cb5b..d88a82ed 100644 --- a/go/tests/foldint/main.go +++ b/go/tests/foldint/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func foldInt(f func(int, int) int, a []int, n int) { diff --git a/go/tests/foreach/main.go b/go/tests/foreach/main.go index ca008381..d3263d48 100644 --- a/go/tests/foreach/main.go +++ b/go/tests/foreach/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func forEach(f func(int), a []int) { diff --git a/go/tests/fprime/main.go b/go/tests/fprime/main.go index 07cc7825..5858d9dd 100644 --- a/go/tests/fprime/main.go +++ b/go/tests/fprime/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/game23/main.go b/go/tests/game23/main.go index 89ce705b..61f3be03 100644 --- a/go/tests/game23/main.go +++ b/go/tests/game23/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func game23(a, b int) int { if a > b { diff --git a/go/tests/gcd/main.go b/go/tests/gcd/main.go index 106917ae..b709a7d9 100644 --- a/go/tests/gcd/main.go +++ b/go/tests/gcd/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/grouping/main.go b/go/tests/grouping/main.go index d08be83a..47b9882d 100644 --- a/go/tests/grouping/main.go +++ b/go/tests/grouping/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func validRegExp(n int) string { result := "(" diff --git a/go/tests/halfcontest/main.go b/go/tests/halfcontest/main.go index fcf0ec13..cd23a506 100644 --- a/go/tests/halfcontest/main.go +++ b/go/tests/halfcontest/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func halfContest(h1, m1, h2, m2 int) int { t1 := h1*60 + m1 diff --git a/go/tests/hello/main.go b/go/tests/hello/main.go index 3ccedd55..c00a4659 100644 --- a/go/tests/hello/main.go +++ b/go/tests/hello/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("hello") diff --git a/go/tests/hiddenp/main.go b/go/tests/hiddenp/main.go index f97f991c..2e458a86 100644 --- a/go/tests/hiddenp/main.go +++ b/go/tests/hiddenp/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { args := [][2]string{ diff --git a/go/tests/index/main.go b/go/tests/index/main.go index 24c47563..e2844626 100644 --- a/go/tests/index/main.go +++ b/go/tests/index/main.go @@ -4,6 +4,7 @@ import ( "strings" "./student" + "github.com/01-edu/public/go/lib" ) func index(s string, substr string) int { diff --git a/go/tests/inter/main.go b/go/tests/inter/main.go index 16b35aa3..b3611b58 100644 --- a/go/tests/inter/main.go +++ b/go/tests/inter/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/interestingnumber/main.go b/go/tests/interestingnumber/main.go index 159c7e2f..72840b57 100644 --- a/go/tests/interestingnumber/main.go +++ b/go/tests/interestingnumber/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func isInteresting(n int) bool { s := 0 diff --git a/go/tests/isalpha/main.go b/go/tests/isalpha/main.go index 977b8b2d..828fb26a 100644 --- a/go/tests/isalpha/main.go +++ b/go/tests/isalpha/main.go @@ -4,6 +4,7 @@ import ( "unicode" "./student" + "github.com/01-edu/public/go/lib" ) func isAlpha(s string) bool { diff --git a/go/tests/isanagram/main.go b/go/tests/isanagram/main.go index 38e4ca74..6e483b72 100644 --- a/go/tests/isanagram/main.go +++ b/go/tests/isanagram/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func isAnagram(s, t string) bool { alph := make([]int, 26) diff --git a/go/tests/islower/main.go b/go/tests/islower/main.go index 63dc0157..4af520b9 100644 --- a/go/tests/islower/main.go +++ b/go/tests/islower/main.go @@ -3,6 +3,7 @@ package main import ( "../common" "./student" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/isnegative/main.go b/go/tests/isnegative/main.go index 43d4bd8a..f9152013 100644 --- a/go/tests/isnegative/main.go +++ b/go/tests/isnegative/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func isNegative(n int) { diff --git a/go/tests/isnumeric/main.go b/go/tests/isnumeric/main.go index 48480c32..2e5b3925 100644 --- a/go/tests/isnumeric/main.go +++ b/go/tests/isnumeric/main.go @@ -5,6 +5,7 @@ import ( "../common" "./student" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/ispowerof2/main.go b/go/tests/ispowerof2/main.go index 53c46f5a..a3a8d8bf 100644 --- a/go/tests/ispowerof2/main.go +++ b/go/tests/ispowerof2/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/isprime/main.go b/go/tests/isprime/main.go index ede62bba..159d05da 100644 --- a/go/tests/isprime/main.go +++ b/go/tests/isprime/main.go @@ -3,6 +3,7 @@ package main import ( "../common" "./student" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/isprintable/main.go b/go/tests/isprintable/main.go index 9b724403..37aa2b33 100644 --- a/go/tests/isprintable/main.go +++ b/go/tests/isprintable/main.go @@ -5,6 +5,7 @@ import ( "unicode" "./student" + "github.com/01-edu/public/go/lib" ) func isPrintable(s string) bool { diff --git a/go/tests/issorted/main.go b/go/tests/issorted/main.go index 319ccba0..0a40d79d 100644 --- a/go/tests/issorted/main.go +++ b/go/tests/issorted/main.go @@ -4,6 +4,7 @@ import ( "sort" "./student" + "github.com/01-edu/public/go/lib" ) func isSorted(f func(int, int) int, arr []int) bool { diff --git a/go/tests/isupper/main.go b/go/tests/isupper/main.go index 81da9f64..01bf963a 100644 --- a/go/tests/isupper/main.go +++ b/go/tests/isupper/main.go @@ -3,6 +3,7 @@ package main import ( "../common" "./student" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/iterativefactorial/main.go b/go/tests/iterativefactorial/main.go index 59be1e09..59821d07 100644 --- a/go/tests/iterativefactorial/main.go +++ b/go/tests/iterativefactorial/main.go @@ -4,6 +4,7 @@ import ( "math/bits" "./student" + "github.com/01-edu/public/go/lib" ) func iterativeFactorial(nb int) int { diff --git a/go/tests/iterativepower/main.go b/go/tests/iterativepower/main.go index b379c9aa..d332fb82 100644 --- a/go/tests/iterativepower/main.go +++ b/go/tests/iterativepower/main.go @@ -4,6 +4,7 @@ import ( "math" "./student" + "github.com/01-edu/public/go/lib" ) func iterativePower(nb int, power int) int { diff --git a/go/tests/itoa/main.go b/go/tests/itoa/main.go index 26ff3f17..5fa81244 100644 --- a/go/tests/itoa/main.go +++ b/go/tests/itoa/main.go @@ -4,6 +4,7 @@ import ( "strconv" "./student" + "github.com/01-edu/public/go/lib" ) func itoa(i int) string { diff --git a/go/tests/itoabase/main.go b/go/tests/itoabase/main.go index f86ac050..490bcf67 100644 --- a/go/tests/itoabase/main.go +++ b/go/tests/itoabase/main.go @@ -5,6 +5,7 @@ import ( "strings" "./student" + "github.com/01-edu/public/go/lib" ) func itoaBase(value, base int) string { diff --git a/go/tests/join/main.go b/go/tests/join/main.go index e7cc0a78..8d3efc31 100644 --- a/go/tests/join/main.go +++ b/go/tests/join/main.go @@ -4,6 +4,7 @@ import ( "strings" "./student" + "github.com/01-edu/public/go/lib" ) func join(elems []string, sep string) string { diff --git a/go/tests/lastrune/main.go b/go/tests/lastrune/main.go index e9715ec0..1d35bb99 100644 --- a/go/tests/lastrune/main.go +++ b/go/tests/lastrune/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func lastRune(s string) rune { runes := []rune(s) diff --git a/go/tests/lastword/main.go b/go/tests/lastword/main.go index be5de0ae..797ee916 100644 --- a/go/tests/lastword/main.go +++ b/go/tests/lastword/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { args := []string{ diff --git a/go/tests/lcm/main.go b/go/tests/lcm/main.go index 187d0117..1961680d 100644 --- a/go/tests/lcm/main.go +++ b/go/tests/lcm/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func gcd(first, second int) int { if second == 0 { diff --git a/go/tests/makerange/main.go b/go/tests/makerange/main.go index 7b59cf3f..03d03ea7 100644 --- a/go/tests/makerange/main.go +++ b/go/tests/makerange/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func makeRange(min, max int) []int { size := max - min diff --git a/go/tests/map/main.go b/go/tests/map/main.go index 211a38b0..758f74e1 100644 --- a/go/tests/map/main.go +++ b/go/tests/map/main.go @@ -3,6 +3,7 @@ package main import ( "../common" "./student" + "github.com/01-edu/public/go/lib" ) func isPositive(i int) bool { diff --git a/go/tests/max/main.go b/go/tests/max/main.go index d9fe5d41..ac62ab0b 100644 --- a/go/tests/max/main.go +++ b/go/tests/max/main.go @@ -4,6 +4,7 @@ import ( "sort" "./student" + "github.com/01-edu/public/go/lib" ) func max(a []int) int { diff --git a/go/tests/nauuo/main.go b/go/tests/nauuo/main.go index 56cd1dfd..c6e518e7 100644 --- a/go/tests/nauuo/main.go +++ b/go/tests/nauuo/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func nauuo(plus, minus, rand int) string { if rand == 0 { diff --git a/go/tests/nbrconvertalpha/main.go b/go/tests/nbrconvertalpha/main.go index 9c7a12c1..658a2a35 100644 --- a/go/tests/nbrconvertalpha/main.go +++ b/go/tests/nbrconvertalpha/main.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/nenokku/main.go b/go/tests/nenokku/main.go index da32c4a7..0ca34a21 100644 --- a/go/tests/nenokku/main.go +++ b/go/tests/nenokku/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { table := [][]string{{ diff --git a/go/tests/nrune/main.go b/go/tests/nrune/main.go index dc7462ba..21a143e8 100644 --- a/go/tests/nrune/main.go +++ b/go/tests/nrune/main.go @@ -4,6 +4,7 @@ import ( "math/rand" "./student" + "github.com/01-edu/public/go/lib" ) func nRune(s string, n int) rune { diff --git a/go/tests/onlya/main.go b/go/tests/onlya/main.go index a7349d6b..11ba9ace 100644 --- a/go/tests/onlya/main.go +++ b/go/tests/onlya/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("onlya") diff --git a/go/tests/onlyz/main.go b/go/tests/onlyz/main.go index aba89342..d4e900a8 100644 --- a/go/tests/onlyz/main.go +++ b/go/tests/onlyz/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("onlyz") diff --git a/go/tests/options/main.go b/go/tests/options/main.go index 23cceb0d..60856ba1 100644 --- a/go/tests/options/main.go +++ b/go/tests/options/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/paramcount/main.go b/go/tests/paramcount/main.go index 6aad4196..5043854b 100644 --- a/go/tests/paramcount/main.go +++ b/go/tests/paramcount/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/piglatin/main.go b/go/tests/piglatin/main.go index c1442a3b..ecdfebf0 100644 --- a/go/tests/piglatin/main.go +++ b/go/tests/piglatin/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { args := [][]string{ diff --git a/go/tests/point/main.go b/go/tests/point/main.go index 3b4c33e1..8b325ccd 100644 --- a/go/tests/point/main.go +++ b/go/tests/point/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("point") diff --git a/go/tests/pointone/main.go b/go/tests/pointone/main.go index 49fd3adf..aa723d4b 100644 --- a/go/tests/pointone/main.go +++ b/go/tests/pointone/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func PointOne(n *int) { *n = 1 diff --git a/go/tests/printalphabet/main.go b/go/tests/printalphabet/main.go index 3da02dbf..2014b88d 100644 --- a/go/tests/printalphabet/main.go +++ b/go/tests/printalphabet/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("printalphabet") diff --git a/go/tests/printbits/main.go b/go/tests/printbits/main.go index 17251283..fa888f0b 100644 --- a/go/tests/printbits/main.go +++ b/go/tests/printbits/main.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/printchessboard/main.go b/go/tests/printchessboard/main.go index 47287e57..7b2cb388 100644 --- a/go/tests/printchessboard/main.go +++ b/go/tests/printchessboard/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/printcomb/main.go b/go/tests/printcomb/main.go index a15abc11..49042e7c 100644 --- a/go/tests/printcomb/main.go +++ b/go/tests/printcomb/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func printComb() { diff --git a/go/tests/printcomb2/main.go b/go/tests/printcomb2/main.go index c31ad631..4a9eca18 100644 --- a/go/tests/printcomb2/main.go +++ b/go/tests/printcomb2/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func printComb2() { diff --git a/go/tests/printcombn/main.go b/go/tests/printcombn/main.go index f1c953bd..3f8dbceb 100644 --- a/go/tests/printcombn/main.go +++ b/go/tests/printcombn/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func show(n int, table [9]int, tmax [9]int) { diff --git a/go/tests/printdigits/main.go b/go/tests/printdigits/main.go index 9ae2a19b..7426a4c5 100644 --- a/go/tests/printdigits/main.go +++ b/go/tests/printdigits/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("printdigits") diff --git a/go/tests/printhex/main.go b/go/tests/printhex/main.go index 1459dacf..71eb5f3f 100644 --- a/go/tests/printhex/main.go +++ b/go/tests/printhex/main.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/printmemory/main.go b/go/tests/printmemory/main.go index 2345b17a..b8ea7400 100644 --- a/go/tests/printmemory/main.go +++ b/go/tests/printmemory/main.go @@ -5,6 +5,7 @@ import ( "unicode" "./student" + "github.com/01-edu/public/go/lib" ) func printBase(nbr int) int { diff --git a/go/tests/printnbr/main.go b/go/tests/printnbr/main.go index c3d45bd0..924b28ee 100644 --- a/go/tests/printnbr/main.go +++ b/go/tests/printnbr/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func printNbr(n int) { diff --git a/go/tests/printnbrinorder/main.go b/go/tests/printnbrinorder/main.go index 2b2f8bfc..449145a0 100644 --- a/go/tests/printnbrinorder/main.go +++ b/go/tests/printnbrinorder/main.go @@ -5,6 +5,7 @@ import ( "sort" "./student" + "github.com/01-edu/public/go/lib" ) func intToDigits(n int) (digits []int) { diff --git a/go/tests/printparams/main.go b/go/tests/printparams/main.go index a4f4976e..4a154203 100644 --- a/go/tests/printparams/main.go +++ b/go/tests/printparams/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/printprogramname/main.go b/go/tests/printprogramname/main.go index 9c82763b..4a955d23 100644 --- a/go/tests/printprogramname/main.go +++ b/go/tests/printprogramname/main.go @@ -4,7 +4,7 @@ import ( "os" "os/exec" - "../lib" + "github.com/01-edu/public/go/lib" ) var name = "student" diff --git a/go/tests/printrevcomb/main.go b/go/tests/printrevcomb/main.go index e7daf9da..868803b4 100644 --- a/go/tests/printrevcomb/main.go +++ b/go/tests/printrevcomb/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("printrevcomb") diff --git a/go/tests/printreversealphabet/main.go b/go/tests/printreversealphabet/main.go index a9a6e683..b9a5cc4d 100644 --- a/go/tests/printreversealphabet/main.go +++ b/go/tests/printreversealphabet/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("printreversealphabet") diff --git a/go/tests/printstr/main.go b/go/tests/printstr/main.go index 19030ccc..5876ab0b 100644 --- a/go/tests/printstr/main.go +++ b/go/tests/printstr/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func printStr(s string) { diff --git a/go/tests/printwordstables/main.go b/go/tests/printwordstables/main.go index 92f5b818..fbddf533 100644 --- a/go/tests/printwordstables/main.go +++ b/go/tests/printwordstables/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func printWordsTables(a []string) { diff --git a/go/tests/priorprime/main.go b/go/tests/priorprime/main.go index 28b229ed..50c9504a 100644 --- a/go/tests/priorprime/main.go +++ b/go/tests/priorprime/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func priorPrime(x int) int { ans := 0 diff --git a/go/tests/raid1a/main.go b/go/tests/raid1a/main.go index 60aa5571..dc6ed530 100644 --- a/go/tests/raid1a/main.go +++ b/go/tests/raid1a/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func drawLine(x int, s string) { diff --git a/go/tests/raid1b/main.go b/go/tests/raid1b/main.go index b1266e5f..d9001bbf 100644 --- a/go/tests/raid1b/main.go +++ b/go/tests/raid1b/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func drawLineRaid1b(x int, s string) { diff --git a/go/tests/raid1c/main.go b/go/tests/raid1c/main.go index 3334a95b..556d07a0 100644 --- a/go/tests/raid1c/main.go +++ b/go/tests/raid1c/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func drawLineRaid1c(x int, s string) { diff --git a/go/tests/raid1d/main.go b/go/tests/raid1d/main.go index 6c1b1cf2..9fb10cab 100644 --- a/go/tests/raid1d/main.go +++ b/go/tests/raid1d/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func drawLineRaid1d(x int, s string) { diff --git a/go/tests/raid1e/main.go b/go/tests/raid1e/main.go index ca71e828..a85c97cd 100644 --- a/go/tests/raid1e/main.go +++ b/go/tests/raid1e/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func drawLineRaid1e(x int, s string) { diff --git a/go/tests/raid2/main.go b/go/tests/raid2/main.go index 8898abe8..a4c5f646 100644 --- a/go/tests/raid2/main.go +++ b/go/tests/raid2/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { valid := [][]string{ diff --git a/go/tests/raid3/main.go b/go/tests/raid3/main.go index 8cedb29f..52941139 100644 --- a/go/tests/raid3/main.go +++ b/go/tests/raid3/main.go @@ -4,7 +4,7 @@ import ( "os/exec" "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/range/main.go b/go/tests/range/main.go index efb83b7b..2939dbb0 100644 --- a/go/tests/range/main.go +++ b/go/tests/range/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/reachablenumber/main.go b/go/tests/reachablenumber/main.go index 018685f9..eb1e3da6 100644 --- a/go/tests/reachablenumber/main.go +++ b/go/tests/reachablenumber/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func reachableNumber(n int) int { cnt := 0 diff --git a/go/tests/rectangle/main.go b/go/tests/rectangle/main.go index 8186a9cf..a0522ad6 100644 --- a/go/tests/rectangle/main.go +++ b/go/tests/rectangle/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("rectangle") diff --git a/go/tests/recursivefactorial/main.go b/go/tests/recursivefactorial/main.go index e62296c8..98ae8f6d 100644 --- a/go/tests/recursivefactorial/main.go +++ b/go/tests/recursivefactorial/main.go @@ -4,6 +4,7 @@ import ( "math/bits" "./student" + "github.com/01-edu/public/go/lib" ) func recursiveFactorial(nb int) int { diff --git a/go/tests/recursivepower/main.go b/go/tests/recursivepower/main.go index e3c649e8..4c595883 100644 --- a/go/tests/recursivepower/main.go +++ b/go/tests/recursivepower/main.go @@ -4,6 +4,7 @@ import ( "math" "./student" + "github.com/01-edu/public/go/lib" ) func recursivePower(nb, power int) int { diff --git a/go/tests/reduceint/main.go b/go/tests/reduceint/main.go index 97a485ac..57d50b71 100644 --- a/go/tests/reduceint/main.go +++ b/go/tests/reduceint/main.go @@ -4,6 +4,7 @@ import ( "fmt" "./student" + "github.com/01-edu/public/go/lib" ) func reduceInt(f func(int, int) int, a []int) { diff --git a/go/tests/repeatalpha/main.go b/go/tests/repeatalpha/main.go index 39ef3e39..9193f5de 100644 --- a/go/tests/repeatalpha/main.go +++ b/go/tests/repeatalpha/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { args := []string{ diff --git a/go/tests/reversebits/main.go b/go/tests/reversebits/main.go index ed91bfd5..351c5977 100644 --- a/go/tests/reversebits/main.go +++ b/go/tests/reversebits/main.go @@ -4,8 +4,8 @@ import ( "math/bits" "reflect" - "../lib" "./student" + "github.com/01-edu/public/go/lib" ) func reverseBits(octet byte) byte { diff --git a/go/tests/reverserange/main.go b/go/tests/reverserange/main.go index 2af69b2f..b23126b0 100644 --- a/go/tests/reverserange/main.go +++ b/go/tests/reverserange/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/reversestrcap/main.go b/go/tests/reversestrcap/main.go index f3cf1235..c9198ae7 100644 --- a/go/tests/reversestrcap/main.go +++ b/go/tests/reversestrcap/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { args := [][]string{ diff --git a/go/tests/revivethreenums/main.go b/go/tests/revivethreenums/main.go index 54f8ea57..104bc621 100644 --- a/go/tests/revivethreenums/main.go +++ b/go/tests/revivethreenums/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func more(a, b int) int { if a < b { diff --git a/go/tests/revparams/main.go b/go/tests/revparams/main.go index 58654b73..413c78cb 100644 --- a/go/tests/revparams/main.go +++ b/go/tests/revparams/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("revparams", "choumi", "is", "the", "best", "cat") diff --git a/go/tests/revwstr/main.go b/go/tests/revwstr/main.go index b20eb9cb..f0f54aed 100644 --- a/go/tests/revwstr/main.go +++ b/go/tests/revwstr/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { table := []string{ diff --git a/go/tests/robottoorigin/main.go b/go/tests/robottoorigin/main.go index 8f2eab33..794c7db3 100644 --- a/go/tests/robottoorigin/main.go +++ b/go/tests/robottoorigin/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { table := []string{ diff --git a/go/tests/romannumbers/main.go b/go/tests/romannumbers/main.go index ef8f706a..5eb88aa7 100644 --- a/go/tests/romannumbers/main.go +++ b/go/tests/romannumbers/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/rostring/main.go b/go/tests/rostring/main.go index 9c225a9e..2604786d 100644 --- a/go/tests/rostring/main.go +++ b/go/tests/rostring/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { args := []string{ diff --git a/go/tests/rot13/main.go b/go/tests/rot13/main.go index 860a173f..c2aee3f0 100644 --- a/go/tests/rot13/main.go +++ b/go/tests/rot13/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { table := append(lib.MultRandWords(), diff --git a/go/tests/rot14/main.go b/go/tests/rot14/main.go index 0ff8652f..b3aeae27 100644 --- a/go/tests/rot14/main.go +++ b/go/tests/rot14/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func rot14(s string) (result string) { for _, r := range s { diff --git a/go/tests/rotatevowels/main.go b/go/tests/rotatevowels/main.go index a4c2442c..db9f57b3 100644 --- a/go/tests/rotatevowels/main.go +++ b/go/tests/rotatevowels/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/rpncalc/main.go b/go/tests/rpncalc/main.go index 99addaad..1458cf12 100644 --- a/go/tests/rpncalc/main.go +++ b/go/tests/rpncalc/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { args := []string{ diff --git a/go/tests/searchreplace/main.go b/go/tests/searchreplace/main.go index 22b6afe6..4dcae8aa 100644 --- a/go/tests/searchreplace/main.go +++ b/go/tests/searchreplace/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { type nodeTest struct { diff --git a/go/tests/slice/main.go b/go/tests/slice/main.go index a7f7bfd0..59c27221 100644 --- a/go/tests/slice/main.go +++ b/go/tests/slice/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func ifNegative(a []string, n int) int { if n < 0 { diff --git a/go/tests/sortintegertable/main.go b/go/tests/sortintegertable/main.go index ca5522b3..9eb8c410 100644 --- a/go/tests/sortintegertable/main.go +++ b/go/tests/sortintegertable/main.go @@ -5,6 +5,7 @@ import ( "sort" "./student" + "github.com/01-edu/public/go/lib" ) func sortIntegerTable(a []int) { diff --git a/go/tests/sortparams/main.go b/go/tests/sortparams/main.go index 7278e361..8b663fc6 100644 --- a/go/tests/sortparams/main.go +++ b/go/tests/sortparams/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { lib.ChallengeMain("sortparams", lib.MultRandWords()...) diff --git a/go/tests/sortwordarr/main.go b/go/tests/sortwordarr/main.go index d59c552f..bc2312fd 100644 --- a/go/tests/sortwordarr/main.go +++ b/go/tests/sortwordarr/main.go @@ -5,6 +5,7 @@ import ( "sort" "./student" + "github.com/01-edu/public/go/lib" ) func sortWordArr(a []string) { diff --git a/go/tests/split/main.go b/go/tests/split/main.go index 91a7b770..a9e9c785 100644 --- a/go/tests/split/main.go +++ b/go/tests/split/main.go @@ -5,6 +5,7 @@ import ( "strings" "./student" + "github.com/01-edu/public/go/lib" ) func split(s, sep string) []string { diff --git a/go/tests/splitwhitespaces/main.go b/go/tests/splitwhitespaces/main.go index 807df720..043018c1 100644 --- a/go/tests/splitwhitespaces/main.go +++ b/go/tests/splitwhitespaces/main.go @@ -4,6 +4,7 @@ import ( "strings" "./student" + "github.com/01-edu/public/go/lib" ) func splitWhiteSpaces(s string) []string { diff --git a/go/tests/sqrt/main.go b/go/tests/sqrt/main.go index 708a4049..4b5cb2da 100644 --- a/go/tests/sqrt/main.go +++ b/go/tests/sqrt/main.go @@ -4,6 +4,7 @@ import ( "math" "./student" + "github.com/01-edu/public/go/lib" ) func sqrt(value int) int { diff --git a/go/tests/strlen/main.go b/go/tests/strlen/main.go index 9a5a5ec8..93a50829 100644 --- a/go/tests/strlen/main.go +++ b/go/tests/strlen/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func strLen(str string) int { len := 0 diff --git a/go/tests/strrev/main.go b/go/tests/strrev/main.go index e52e3bdd..ae8557c8 100644 --- a/go/tests/strrev/main.go +++ b/go/tests/strrev/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func strRev(s string) string { runes := []rune(s) diff --git a/go/tests/swap/main.go b/go/tests/swap/main.go index ef10a57f..a3a51972 100644 --- a/go/tests/swap/main.go +++ b/go/tests/swap/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func Swap(a, b *int) { *a, *b = *b, *a diff --git a/go/tests/swapbits/main.go b/go/tests/swapbits/main.go index afcb9cab..af7ae8a3 100644 --- a/go/tests/swapbits/main.go +++ b/go/tests/swapbits/main.go @@ -4,6 +4,7 @@ import ( "reflect" "./student" + "github.com/01-edu/public/go/lib" ) func swapBits(n byte) byte { diff --git a/go/tests/sweetproblem/main.go b/go/tests/sweetproblem/main.go index 0507d48c..0b6d8dc2 100644 --- a/go/tests/sweetproblem/main.go +++ b/go/tests/sweetproblem/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func min3(a, b, c int) int { if a <= b && a <= c { diff --git a/go/tests/switchcase/main.go b/go/tests/switchcase/main.go index d45d8685..92539970 100644 --- a/go/tests/switchcase/main.go +++ b/go/tests/switchcase/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { table := append(lib.MultRandWords(), diff --git a/go/tests/tabmult/main.go b/go/tests/tabmult/main.go index bac11f84..9c899496 100644 --- a/go/tests/tabmult/main.go +++ b/go/tests/tabmult/main.go @@ -3,7 +3,7 @@ package main import ( "strconv" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/tetrisoptimizer/main.go b/go/tests/tetrisoptimizer/main.go index e2f8fe16..f518c800 100644 --- a/go/tests/tetrisoptimizer/main.go +++ b/go/tests/tetrisoptimizer/main.go @@ -12,7 +12,7 @@ import ( "strings" "time" - "../lib" + "github.com/01-edu/public/go/lib" ) type ( diff --git a/go/tests/tolower/main.go b/go/tests/tolower/main.go index 6444acaa..d5b3a563 100644 --- a/go/tests/tolower/main.go +++ b/go/tests/tolower/main.go @@ -4,6 +4,7 @@ import ( "strings" "./student" + "github.com/01-edu/public/go/lib" ) func toLower(s string) string { diff --git a/go/tests/toupper/main.go b/go/tests/toupper/main.go index b7bd7b0e..a26de262 100644 --- a/go/tests/toupper/main.go +++ b/go/tests/toupper/main.go @@ -4,6 +4,7 @@ import ( "strings" "./student" + "github.com/01-edu/public/go/lib" ) func toUpper(s string) string { diff --git a/go/tests/trimatoi/main.go b/go/tests/trimatoi/main.go index 9292346e..9b57f801 100644 --- a/go/tests/trimatoi/main.go +++ b/go/tests/trimatoi/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func trimAtoi(str string) int { chars := []rune(str) diff --git a/go/tests/twosum/main.go b/go/tests/twosum/main.go index 3e923214..69b0379b 100644 --- a/go/tests/twosum/main.go +++ b/go/tests/twosum/main.go @@ -4,6 +4,7 @@ import ( "math/rand" "./student" + "github.com/01-edu/public/go/lib" ) func twoSum(nums []int, target int) []int { diff --git a/go/tests/ultimatedivmod/main.go b/go/tests/ultimatedivmod/main.go index 32083749..1e93068a 100644 --- a/go/tests/ultimatedivmod/main.go +++ b/go/tests/ultimatedivmod/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func UltimateDivMod(a, b *int) { temp := *a diff --git a/go/tests/ultimatepointone/main.go b/go/tests/ultimatepointone/main.go index 9abac990..6404d05f 100644 --- a/go/tests/ultimatepointone/main.go +++ b/go/tests/ultimatepointone/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func UltimatePointOne(n ***int) { ***n = 1 diff --git a/go/tests/union/main.go b/go/tests/union/main.go index 653d0182..8550d602 100644 --- a/go/tests/union/main.go +++ b/go/tests/union/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() { diff --git a/go/tests/uniqueoccurences/main.go b/go/tests/uniqueoccurences/main.go index f346724e..59616d0b 100644 --- a/go/tests/uniqueoccurences/main.go +++ b/go/tests/uniqueoccurences/main.go @@ -1,6 +1,8 @@ package main -import "../lib" +import ( + "github.com/01-edu/public/go/lib" +) func main() { table := []string{ diff --git a/go/tests/unmatch/main.go b/go/tests/unmatch/main.go index 00ca05e8..05e907d6 100644 --- a/go/tests/unmatch/main.go +++ b/go/tests/unmatch/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) // Returns the element of the slice that doesn't have a correspondant pair func unmatch(arr []int) int { diff --git a/go/tests/volumechanger/main.go b/go/tests/volumechanger/main.go index c672a1c2..5a6eb16d 100644 --- a/go/tests/volumechanger/main.go +++ b/go/tests/volumechanger/main.go @@ -1,6 +1,9 @@ package main -import "./student" +import ( + "./student" + "github.com/01-edu/public/go/lib" +) func abs(a int) int { if a < 0 { diff --git a/go/tests/wdmatch/main.go b/go/tests/wdmatch/main.go index 320a5cf7..861da8f4 100644 --- a/go/tests/wdmatch/main.go +++ b/go/tests/wdmatch/main.go @@ -3,7 +3,7 @@ package main import ( "strings" - "../lib" + "github.com/01-edu/public/go/lib" ) func main() {