utils

package
v0.0.0-...-7446d19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate()

This function is a calculator that receive two integer numbers and an arithmetic operation like +,-,*,/; and print in the console the result

func Input

func Input(value string) string

func RunServer

func RunServer()

func Scrap

func Scrap(url string)

Types

type Calculator

type Calculator struct {
	// contains filtered or unexported fields
}

type Task

type Task struct {
	Id          int
	Name        string
	Description string
	IsComplete  bool
	IsActive    bool
}

type TaskList

type TaskList struct {
	Tasks []*Task
}

func (*TaskList) CompleteTask

func (t *TaskList) CompleteTask(id int)

func (*TaskList) CreateTask

func (t *TaskList) CreateTask(name string, description string)

Create a new task

func (*TaskList) DeleteTask

func (t *TaskList) DeleteTask(id int)

func (*TaskList) ShowTasks

func (t *TaskList) ShowTasks()

type Todo

type Todo struct {
	Title  string `json:"title"`
	IsDone bool   `json:"isDone"`
}

type TodoPageData

type TodoPageData struct {
	PageTitle string
	Todos     []Todo
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL