goexamples

package module
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 2 Imported by: 0

README

GO Examples

a collection of go examples. see more at GO Docs

Use this mod

main.go

package main

import (
 "gitee.com/egu0/goexamples/v2"
)

func main() {
 println(goexamples.Greeting("Eugene"))
}

then run go mod tidy to download the package.

the run go run main.go

记录

  • 仓库地址是:https://gitee.com/egu0/goexamples
  • go.mod 第一行是:package gitee.com/egu0/goexamples/v2
  • 在【仓库页面】创建 tag 和发行版:v2.0.1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTest

func AddTest() int

func Greeting

func Greeting(name string) string

Hello returns a greeting for the named person.

Types

This section is empty.

Source Files

  • test.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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