Groups | Search | Server Info | Login | Register


Groups > comp.lang.go > #31

quine.go

From Jack Ryan <jackryan@example.invalid>
Subject quine.go
Message-Id <20231231162356.2E8461005FC@tidalhost.archiade.net>
Date 2023-12-31 11:23 -0500
Newsgroups comp.lang.go
Organization dizum.com - The Internet Problem Provider

Show all headers | View raw


package main

import "fmt"

func main() {
    fmt.Println("Happy New Year 2024!")
    q := "package main%c%cimport %cfmt%c%c%cfunc main() {%c    fmt.Println(%cHappy New Year 2024!%c)%c    q := %c%s%c%c    fmt.Printf(q, 10, 10, 34, 34, 10, 10, 10, 34, 34, 10, 34, q, 34, 10, 10, 10)%c}%c"
    fmt.Printf(q, 10, 10, 34, 34, 10, 10, 10, 34, 34, 10, 34, q, 34, 10, 10, 10)
}

Back to comp.lang.go | Previous | NextNext in thread | Find similar


Thread

quine.go Jack Ryan <jackryan@example.invalid> - 2023-12-31 11:23 -0500
  Re: quine.go rek2 hispagatos <rek2@hispagatos.org.invalid> - 2024-01-02 19:08 +0000

csiph-web