Skip to content

Commit

Permalink
test mod
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed May 19, 2022
1 parent f5a4524 commit 06a1b84
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/DukeKevin/testgomod

go 1.17
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
"github.com/DukeKevin/testgomod/name"
)

func main() {
name.PrtToday()
}
14 changes: 14 additions & 0 deletions name/print.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package name

import (
"fmt"
"time"
)

func Today() string {
return time.Now().Format("2006-01-02 15:04:05")
}

func PrtToday() {
fmt.Println(Today())
}
1 change: 0 additions & 1 deletion test.go

This file was deleted.

0 comments on commit 06a1b84

Please sign in to comment.