Skip to content

Commit

Permalink
add go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
ttakuya50 committed May 23, 2020
1 parent 706aba0 commit b229b3b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Created by .ignore support plugin (hsz.mobi)
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/ttakuya50/github-actions-example

go 1.13

require github.com/iancoleman/strcase v0.0.0-20191112232945-16388991a334
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/iancoleman/strcase v0.0.0-20191112232945-16388991a334 h1:VHgatEHNcBFEB7inlalqfNqw65aNkM1lGX2yt3NmbS8=
github.com/iancoleman/strcase v0.0.0-20191112232945-16388991a334/go.mod h1:SK73tn/9oHe+/Y0h39VT4UCxmurVJkR5NA7kMEAOgSE=
13 changes: 11 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
package main

import "fmt"
import (
"fmt"

"github.com/iancoleman/strcase"
)

func main() {
fmt.Print(sum(1, 3))
fmt.Println(sum(1, 3))
fmt.Println(ToSnake())
}

func sum(a, b int) int {
return a + b
}

func ToSnake() string {
return strcase.ToSnake("UserStart")
}

0 comments on commit b229b3b

Please sign in to comment.