dog

package
v0.0.0-...-c470439 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package dog allows us to more fully understand dogs.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Years

func Years(n int) int

Years converts human years to dog years.

Example
package main

import (
	"fmt"

	"github.com/preslavmihaylov/learn-golang/ninja-level-13/ex01/dog"
)

func main() {
	fmt.Println(dog.Years(10))
}
Output:

70

func YearsTwo

func YearsTwo(n int) int

YearsTwo converts human years to dog years.

Example
package main

import (
	"fmt"

	"github.com/preslavmihaylov/learn-golang/ninja-level-13/ex01/dog"
)

func main() {
	fmt.Println(dog.YearsTwo(10))
}
Output:

70

Types

This section is empty.

Jump to

Keyboard shortcuts

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