Help us shape the future of Go! Take the 2026 Go Developer Survey

datetime

package
v1.152.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package datetime provides the current date and time in a model-chosen format.

Index

Constants

View Source
const ToolNameGetDatetime = "get_datetime"

Variables

This section is empty.

Functions

func CreateToolSet

func CreateToolSet() (tools.ToolSet, error)

CreateToolSet is the registry entry point.

Types

type Args

type Args struct {
	Format   string `` /* 280-byte string literal not displayed */
	Timezone string `` /* 156-byte string literal not displayed */
}

type ToolSet

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

func New

func New() *ToolSet

func (*ToolSet) Instructions

func (t *ToolSet) Instructions() string

func (*ToolSet) Tools

func (t *ToolSet) Tools(context.Context) ([]tools.Tool, error)

Jump to

Keyboard shortcuts

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