Adds template execution and correctly calls create ticket method

This commit is contained in:
Miguel de la Cruz 2020-03-01 11:42:36 +01:00
parent 41baff8743
commit c9cfb83e32
3 changed files with 46 additions and 9 deletions

22
jira/jira.go Normal file
View file

@ -0,0 +1,22 @@
package jira
import (
"fmt"
)
type JiraClient struct {
Username string
Token string
}
func NewClient(username, token string) *JiraClient {
return &JiraClient{
Username: username,
Token: token,
}
}
func (c *JiraClient) CreateTicket(summary, description string) (string, error) {
fmt.Printf("Summary: %s\nDescription: %s\n", summary, description)
return "", nil
}