gomodexample

package module
v0.0.0-...-274e803 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 1 Imported by: 0

README

gomodexample

gomodexample is an example go module created with github.com/parro-it/gomod gomod template.

Documentation

Contributing

License

MIT Licensed

© 2021 Andrea Parodi

Documentation

Overview

Package gomodexample gomodexample is an example go module created with github.com/parro-it/gomod gomod template.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Func

func Func() int

Func answers

Example

This example show how to use gomodexample.Func()

package main

import (
	"bytes"
	"embed"
	"fmt"
	"io/fs"
	"time"

	"github.com/parro-it/gomodexample"
)

//go:embed fixtures
var fixtureRootFS embed.FS
var fixtureFS, _ = fs.Sub(fixtureRootFS, "fixtures")

// This example show how to use gomodexample.Func()
func main() {
	fmt.Println(gomodexample.Func())
}
Output:

42

Types

This section is empty.

Jump to

Keyboard shortcuts

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