Refactoring, Bugfix & Updates
+ Refactored all imports + Fixed a bug for the logging regarding removing \n \t \r + Updated to current MGO release + Changed the name of ICCC
This commit is contained in:
1 parent
b50066ef5d
commit
f33f7b5c29
91 files changed
+496
-316
No files matched your search
+5
-3
@@ -1,8 +1,10 @@
|
||||
package Tools
|
||||
|
||||
import "time"
|
||||
import "fmt"
|
||||
import "strconv"
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
||||
func FormatTime(t1 time.Time) (result string) {
|
||||
var year int = t1.Year()
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package Tools
|
||||
|
||||
import "net"
|
||||
import "strings"
|
||||
import (
|
||||
"net"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func ReadAllIPAddresses4ThisHost() (addresses4Host []string) {
|
||||
addresses4Host = ipAddresses
|
||||
|
||||
+8
-6
@@ -1,11 +1,13 @@
|
||||
package Tools
|
||||
|
||||
import "os"
|
||||
import "time"
|
||||
import "math/rand"
|
||||
import "github.com/SommerEngineering/Ocean/ConfigurationDB"
|
||||
import "github.com/SommerEngineering/Ocean/Log"
|
||||
import LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
||||
import (
|
||||
"github.com/SommerEngineering/Ocean/ConfigurationDB"
|
||||
"github.com/SommerEngineering/Ocean/Log"
|
||||
LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
||||
"math/rand"
|
||||
"os"
|
||||
"time"
|
||||
)
|
||||
|
||||
func init() {
|
||||
// Get this hostname:
|
||||
|
||||
+3
-1
@@ -1,6 +1,8 @@
|
||||
package Tools
|
||||
|
||||
import "math/rand"
|
||||
import (
|
||||
"math/rand"
|
||||
)
|
||||
|
||||
func RandomInteger(max int) (rnd int) {
|
||||
rnd = rand.Intn(max)
|
||||
|
||||
+3
-1
@@ -1,6 +1,8 @@
|
||||
package Tools
|
||||
|
||||
import LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
||||
import (
|
||||
LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
||||
)
|
||||
|
||||
var (
|
||||
senderName LM.Sender = `System::Tools`
|
||||
|
||||
Reference in new issue
Block a user